【发布时间】:2011-03-29 03:43:56
【问题描述】:
public class Test
{
public int a = 2;
public static int b = 5;
public struct C
{
public int d = 9;
public static int e = 7;
}
}
new Test().Dump();
上面的代码将转储新创建的对象并将a列为属性,但不会列出b或嵌套的静态结构C或其中的任何内容。
如果我有很多自动生成的静态属性,我该如何转储所有内容?
【问题讨论】: