Welcome to MSDN Blogs Sign in | Join | Help

February 2005 - Posts

Compiler trivia: const, operators and being nice to the compiler

This is a question that came up on our internal alias. I thought it might be generally interesting to illustrate how the compiler picks operators. Here is the original issue. This code compiles fine: UInt64 vUInt641 = UInt64.MaxValue; const int vInt2
Posted by lucabol | 1 Comments
Filed under:

Nullable trilogy part III: Nullable<T> as type parameter in a generic class

Another commonly asked question relates to the behavior of Nullable<T> when used as type parameter to instantiate a generic class. It might be surprising that comparing such a parameter to null gives always false as a result. As it turns out, this
Posted by lucabol | 0 Comments
Filed under:
 
Page view tracker