Miscellaneous Performance

Posted by Richard on Stack Overflow See other posts from Stack Overflow or by Richard
Published on 2010-06-15T14:09:32Z Indexed on 2010/06/15 14:12 UTC
Read the original article Hit count: 365

Filed under:
|

Is it faster to make a comparison or a cast in C#.Net?
For example:
bool? flag = null;
...
if(flag == true)... or if((bool)flag)...
Also, what is the cost (in memory) of a cast?

© Stack Overflow or respective owner

Related posts about c#

Related posts about memory-management