CodeMemberProperty.HasGet Property


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

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

public bool HasGet { get; set; }

Property Value

Type: System.Boolean

true if the Count property of the GetStatements collection is non-zero, or if the value of this property has been set to true; otherwise, false.


Setting this property to false clears the GetStatements collection.

.NET Framework
Available since 1.1
Return to top