Mono Class Library: System.Type Overview | Members

System.Type.GetDefaultMembers Method

Returns an array of System.Reflection.MemberInfo objects that reflect the default members defined in the type represented by the current instance.

public virtual System.Reflection.MemberInfo[] GetDefaultMembers ()

Returns

An array of System.Reflection.MemberInfo objects reflecting the default members of the type represented by the current instance. If the type represented by the current instance does not have any default members, returns an empty array.

Remarks

If the current instance represents a generic type, this method returns the System.Reflection.MemberInfo objects with the type parameters replaced by the appropriate type arguments.

If the current instance represents an unassigned type parameter of a generic type or method, this method searches the members of the class constraint, or the members of object if there is no class constraint; the members of all interface constraints; and the members of any interfaces inherited from class or interface constraints.

Operation
The members returned by this method have the System.Reflection.DefaultMemberAttribute attribute.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0