|
From: | Earnie Boyd |
Subject: | Re: [DotGNU] fxcop |
Date: | Sun, 02 May 2004 05:39:44 -0400 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 |
Gopal V wrote:
Hi,A String and not a pointer to String object? So,a.Length should always have a valid location in memory? Or is this how C#is different than C++?String a = null;is possible ... all objects are references and therefore are nullable .. so we need the check.
Ok. I did say, forgive my stupidity.
Thanks for the education. I have yet to look into using C#. So you've enlightened me greatly.Essentially, C# has all objects as references .. Only valuetypes (ie like primitives, enums and structs) are data on the stack. Those will always have a valid memory location.
Thanks again, Earnie -- http://www.mingw.org http://sourceforge.net/projects/mingw https://sourceforge.net/donate/index.php?user_id=15438
[Prev in Thread] | Current Thread | [Next in Thread] |