Yea.Reflection.Emit.TypeBuilder.CreateProperty C# (CSharp) Method

CreateProperty() public method

Creates a property
public CreateProperty ( string name, Type propertyType, PropertyAttributes attributes = PropertyAttributes.SpecialName, MethodAttributes getMethodAttributes = MethodAttributes.Public|MethodAttributes.Virtual, MethodAttributes setMethodAttributes = MethodAttributes.Public|MethodAttributes.Virtual, IEnumerable parameters = null ) : IPropertyBuilder
name string name of the property
propertyType System.Type Type of the property
attributes PropertyAttributes attributes for the property (special name, etc.)
getMethodAttributes MethodAttributes Get method's attributes (public, private, etc.)
setMethodAttributes MethodAttributes Set method's attributes (public, private, etc.)
parameters IEnumerable Parameter types
return IPropertyBuilder
        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;
        }