Lets say I have a concrete class Class1 and I am creating an anonymous class out of it. Object a = new Class1(){ void someNewMethod(){ } }; Now is...
In C# 3.0 you can create anonymous class with the following syntax var o = new { Id = 1, Name = "Foo" }; Is there a way to...
Is it possible to have an anonymous type implement an interface? I’ve got a piece of code that I would like to work, but don’t know how to do...