<PackageReference Include="System.Reflection.Emit" Version="4.6.0-preview7.19362.9" />

System.Reflection.Emit.PropertyBuilder

public sealed class PropertyBuilder : PropertyInfo
Defines the properties for a type.
public void AddOtherMethod(MethodBuilder mdBuilder)

Adds one of the other methods associated with this property.

public void SetConstant(object defaultValue)

Sets the default value of this property.

public void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute)

Set a custom attribute using a specified custom attribute blob.

public void SetCustomAttribute(CustomAttributeBuilder customBuilder)

Set a custom attribute using a custom attribute builder.

public void SetGetMethod(MethodBuilder mdBuilder)

Sets the method that gets the property value.

public void SetSetMethod(MethodBuilder mdBuilder)

Sets the method that sets the property value.