ITypeDecorator Interface

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

Definition

Defines a contract for types that decorate or wrap another type (arrays, pointers, by-ref, or nullable).
public interface ITypeDecorator : IType
Extends
Implemented by

Properties

ArrayRankGets the rank of the array if the type is an array.
ElementTypeGets the element type.
ModifierGets the type modifier that indicates how the type decorates or wraps an element type.

Methods

Unwrap(Action<ITypeDecorator>)Retrieves the underlying type by unwrapping any decorators such as arrays, pointers, by-ref, or nullable types.

Extension Methods

GetInheritedMember(this IMember)Retrieves the member that this member directly inherits from.
GetMemberDefinition(this IMember)Retrieves the definition of the member, resolving any constructed or decorated forms to their underlying definitions.
GetMembers(this IType)Gets all members directly declared by the type, excluding nested types.
GetMembersIncludingNested(this IType)Gets all members of the type, including its nested types and their members at all nesting levels.
TryGetOwnTypeParameters(this IMember, out IEnumerable<ITypeParameter>)Attempts to get the type parameters declared directly by the specified member if it is generic.