Eric Gunnerson just brings up a series of posts on some C# trivia that probably most developers don't know about, I just quote some of them which are more relevant to the C# technicality:

Language Details

1) How is decimal different from other C# types?
2) What kind of constructor is not legal on structs? Why?
3) What’s the difference between “out” and “[out]”?
4) When you write
ulong, what does the runtime see?
5) When can a readonly field be assigned to?
6) How many loop constructs does C# have, and what are they?
7) What is the difference between “ref” and “out”?

C# and the Runtime

1) What interfaces does foreach use in C# 1.1? What about 2.0?
2) What is the name of the attribute that controls the usage of an attribute?
3) What does
[FieldOffset(12)] do?
4) What does [IndexerName(“Fred”)] do? Why would you use it?


Do you know the answers?

相关文章:

  • 2022-01-30
  • 2021-12-17
  • 2021-07-06
  • 2021-04-06
  • 2021-07-30
  • 2022-12-23
  • 2021-05-27
  • 2021-12-07
猜你喜欢
  • 2021-11-12
  • 2021-06-14
  • 2021-05-17
  • 2022-12-23
  • 2021-12-17
  • 2021-12-17
  • 2021-09-05
相关资源
相似解决方案