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(); }
public DynamicTypePropertiesBuilder HaveSetter(GetSetAccessModifier accessModifier) { property.SetAccessModifier = accessModifier; return(this); }