See Also: PropertyInfo Members
Properties are logically the same as fields. A property is a named aspect of an object's state whose value is typically accessible through get and set accessors. Properties may be read-only, in which case a set routine is not supported.
To determine whether a property is static, you must obtain the System.Reflection.MethodInfo for the get or set accessor, by calling the erload:System.Reflection.PropertyInfo.GetGetMethod or the erload:System.Reflection.PropertyInfo.GetSetMethod method, and examine its MethodBase.IsStatic property.
Several methods in this class assume that the get accessor and set accessor methods of a property have certain formats. The signatures of the get and set methods must match the following convention:
The return type of the get method and the last argument of the set method must be identical. This is the type of the property.
The get and set methods must have the same number, type, and order of indices.
If this format is not followed, the behavior of the GetValue and SetValue methods is undefined.
Calling ICustomAttributeProvider.GetCustomAttributes(Type, bool) on PropertyInfo when the inherit parameter of GetCustomAttributes is true does not walk the type hierarchy. Use Attribute to inherit custom attributes.