MetadataExtensions.GetMembers Method

Namespace
Kampute.DocToolkit.Metadata
Assembly
  • Kampute.DocToolkit.dll

Definition

Gets all members directly declared by the type, excluding nested types.
public static IEnumerable<ITypeMember> GetMembers(this IType type)

Parameters

type IType
The type whose members are to be retrieved.

Returns

IEnumerable<ITypeMember>
An enumerable collection of members declared by the type.

Exceptions

ArgumentNullException
Thrown when type is null.

Remarks

This method retrieves fields, properties, methods, events, constructors, operators, and explicit interface members directly declared by the type. Private and inherited members and nested types are excluded.

This method is implemented using deferred execution. The immediate return value is an object that stores all the information required to perform the action.