IP属地:江苏
public class DynamicClassDto{public class DynamicClassModel{public static class ClassUt...
大师,专门注册了账号,想和你交流一下上述代码:
我这样测试了一下:
CustPropertyInfo custPropertyInfo = new CustPropertyInfo();
List<CustPropertyInfo> LSTcustPropertyInfos = new List<CustPropertyInfo>();
custPropertyInfo.Type = "String";
custPropertyInfo.PropertyName = "USER";
LSTcustPropertyInfos.Add(custPropertyInfo);
但是,执行到FieldBuilder customerNameBldr = myTypeBuilder.DefineField(cpi.FieldName, Type.GetType(cpi.Type), FieldAttributes.Private);
时,报错误:
System.ArgumentNullException:“值不能为 null。
Arg_ParamName_Name”
能否指点下迷津,多谢
C#动态创建类public class DynamicClassDto{public class DynamicClassModel{public static class ClassUt...