日期:2014-05-17 浏览次数:20975 次
public struct BLC
{
public int a;
public int b;
public DCE dce;
public FG fg;
};
public struct DCE
{
public int[] haha;
public int f;
};
public struct FG
{
public int[] data;
}
static void WriteStructValue(object obj, string pname, StringBuilder sb)
{
Type type = obj.GetType();
string typename = pname + "." + type.Name;
foreach (FieldInfo mi in type.GetFields(BindingFlags.Public
------解决方案--------------------
BindingFlags.Instance))