Showing related tags and posts accross the entire site.
-
I was watching Entity Framework code when I found this code: switch ( this .<>1__state) { case 3 : case 4 : break ; default : return ; try { } finally { this . d__0.<>m__Finally6();" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://System.Data.Entity:3.5.0.0:b77a5c561934e089...
-
I think it should be a great thing to have two notions: class private and instance private (and the same for protected). In my mind, in a lot of case, I shouldn’t be able to do this: class C1 { private int _test = 0; public int Test( C1 c1) { return c1._test; } } Indeed, when I define _test as (instance...