我们都知道,当我们创建这样的匿名类时:
var Employee = new { ID = 5, Name= "Prashant" };
...在运行时它将是以下类型:
<>f__AnonymousType0<int,string>
有没有办法为此类指定一个有意义的名称?
public class Employee {}