コード例 #1
0
 internal DynamicTypeProperty(PropertyInfo propertyInfo)
 {
     Name = propertyInfo.Name;
     Type = propertyInfo.PropertyType;
     GetAccessModifier = GetMethodAccessModifier(propertyInfo.GetMethod);
     SetAccessModifier = GetMethodAccessModifier(propertyInfo.SetMethod);
     attributeBuilders = propertyInfo.GetCustomAttributesData().Select(x => x.ToBuilder()).ToList();
 }
コード例 #2
0
 public DynamicTypePropertiesBuilder HaveSetter(GetSetAccessModifier accessModifier)
 {
     property.SetAccessModifier = accessModifier;
     return(this);
 }