Value of unassigned non-nullable variable (C#)

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-05-28T13:19:25Z Indexed on 2010/05/28 13:21 UTC
Read the original article Hit count: 311

Just curious.

If you go:

string myString;

Its value is null.

But if you go:

int myInt;

What is the value of this variable in C#?

Thanks

David

© Stack Overflow or respective owner

Related posts about c#

Related posts about value