Now this is something i really didn't think it would compile in C#.
private int _someVar = 0; private void DoStuff1() { int _someVar = 0; _someVar = 6; // ... code that uses _someVar } private void DoStuff2() { _someVar = 5; // ... code that uses _someVar }
We should at least get a warning if you ask me...
One learns something new every day.
Print | posted on Wednesday, May 23, 2007 9:52 PM | Filed Under [ .Net ]
Powered by:
Copyright © Mladen Prajdić