Browse by Tags

All Tags » .Net » MSIL (RSS)

Reflector IL to C# Bug

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...
Posted by Matthieu MEZIL | with no comments
Filed under: , , , ,

Entity Cloner

I do an EntityCloner which can Clone an entity single or all the graph from one entity. To clone an entity, I use reflection but the problem of Reflection is it’s far. The way to Clone a product is always the same. So I generate a Delegate on the fly...

What do you think about private and protected?

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...
Posted by Matthieu MEZIL | with no comments
Filed under: , , ,