class PropertyInfo

in global :: System . Reflection

Discovers the attributes of a property and provides access to property metadata.


public bool CanRead { get; }

Gets a value indicating whether the property can be read.

  • Returns if this property can be read; otherwise, .

public bool CanWrite { get; }

Gets a value indicating whether the property can be written to.

  • Returns if this property can be written to; otherwise, .

public MethodInfo GetMethod { get; }

Gets the accessor for this property.

  • Returns The accessor for this property.

public bool IsSpecialName { get; }

Gets a value indicating whether the property is the special name.

  • Returns if this property is the special name; otherwise, .

public Type PropertyType { get; }

Gets the type of this property.

  • Returns The type of this property.

public MethodInfo SetMethod { get; }

Gets the accessor for this property.

  • Returns The accessor for this property, or if the property is read-only.

public string Name { get; }

😔 No documentation found.

public Type DeclaringType { get; }

😔 No documentation found.

public Type ReflectedType { get; }

😔 No documentation found.

public IEnumerable<CustomAttributeData> CustomAttributes { get; }

😔 No documentation found.

public bool IsCollectible { get; }

😔 No documentation found.

public int MetadataToken { get; }

😔 No documentation found.