CodeMemberProperty.HasSet Property

 

Gets or sets a value indicating whether the property has a set method accessor.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public bool HasSet { get; set; }

Property Value

Type: System.Boolean

true if the Count property of the SetStatements collection is non-zero; otherwise, false.

HasSet will return false if the property is read-only.

System_CAPS_noteNote

Setting this property to false will clear the SetStatements collection.

.NET Framework
Available since 1.1
Return to top
Show: