The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Definite Assignment Rule in C#
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Sam HobbsPosted May 27, 2011, 3:47 PM
If I compile the sample C++ code that declares sampleValue without initializing it, I get the warning message "warning C4700: uninitialized local variable 'sampleValue' used". I am using VS 2010 but VC has done that since before it was called visual; in other words, always. Also, I wonder how C# compares with VB .Net; I assume they are essentially the same but I wonder if VB 6 gave an error or warning about the problem.
Former memberPosted May 27, 2011, 6:49 AM
It is very nice seeing you comparing three languages . vert please to see screen short of all three languages. Very nice article. Thanks for Sharing