Hi!
I'm new here and i've begun to learn C#.
I have Microsoft Visual Studio 2005,and I think I found some bugs:
1.
class
Car{
public int
Year;}
Why does this code create a warning (Field 'Car.Year' is never assigned to, and will always have its default value 0)
Now this warning should be ONLY with unpublic fieds in structs and classes (written in MSDN - here's the link http://msdn2.microsoft.com/en-us/library/03b5270t(VS.80).aspx) and Year is public!
Is this a bug
2.
When I compile code and having warnings, so when I hit the 'build' button again they just disappear!
Strange...
Thank you very much for the help!