public virtual IPropertyBuilder CreateProperty(string name, Type propertyType,
PropertyAttributes attributes = PropertyAttributes.SpecialName,
MethodAttributes getMethodAttributes =
MethodAttributes.Public | MethodAttributes.Virtual,
MethodAttributes setMethodAttributes =
MethodAttributes.Public | MethodAttributes.Virtual,
IEnumerable<Type> parameters = null)
{
var returnValue = new PropertyBuilder(this, name, attributes,
getMethodAttributes, setMethodAttributes, propertyType, parameters);
Properties.Add(returnValue);
return returnValue;
}