Export (0) Print
Expand All

PropertyBuilder.CanRead Property

Gets a value indicating whether the property has a get accessor.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public override bool CanRead { get; }

Property Value

Type: System.Boolean
true if this property has a get accessor, and therefore can be read; otherwise, false.

A property might lack a get accessor because it is write-only, or because the get accessor has not been assigned yet. To assign a get accessor to a property, use the SetGetMethod method.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft