Nullable type conversion in C#?

Posted by dinesh on Stack Overflow See other posts from Stack Overflow or by dinesh
Published on 2010-02-12T09:02:41Z Indexed on 2010/04/17 21:23 UTC
Read the original article Hit count: 198

Filed under:

Hi

can we assign null value to struct type of variable?

struct MyStruct
{
}

MyStruct var = null;

is this is possible in C# .net?

if not ? then how C# is allowing Nullable < T > struct type of variable can be assigned as null?

© Stack Overflow or respective owner

Related posts about c#3.0