In This Article

ITypeMemberDefinition Interface

Provides the base requirements of a type member (method, property, etc.) definition.

public interface ITypeMemberDefinition : ITypeMemberReference, IReflectionDefinition

Properties

Access

Gets a TypeMemberAccess indicating the current member's access visibility.

TypeMemberAccess Access { get; }

Property Value

TypeMemberAccess:

A TypeMemberAccess indicating the current member's access visibility.

DeclaringType

Gets the type that declares the current member.

ITypeDefinition DeclaringType { get; }

Property Value

ITypeDefinition:

An ITypeDefinition object representing the enclosing type.

DocumentationComment

Gets the optional documentation comment, if the current member is defined in source code.

string DocumentationComment { get; }

Property Value

String:

The optional documentation comment, if the current member is defined in source code.

ExtensionType

Gets the type that is implicitly used as a first argument, when an extension method is invoked.

ITypeDefinition ExtensionType { get; }

Property Value

ITypeDefinition:

The type that is implicitly used as a first argument, when an extension method is invoked.

GetterAccess

Gets a TypeMemberAccess indicating the getter access visibility if this member is a property.

TypeMemberAccess GetterAccess { get; }

Property Value

TypeMemberAccess:

A TypeMemberAccess indicating the getter access visibility if this member is a property.

IsAbstract

Gets whether the current member is abstract and must be overridden.

bool IsAbstract { get; }

Property Value

Boolean:

true if the current member is abstract and must be overridden; otherwise, false.

IsAdvanced

Gets whether the current member is decorated such that it should only be visible to advanced users within an editor.

bool IsAdvanced { get; }

Property Value

Boolean:

true if the current member is decorated such that it should only be visible to advanced users within an editor; otherwise, false.

IsAsync

Gets whether the current member is designated as having an asynchronous result.

bool IsAsync { get; }

Property Value

Boolean:

true if the current member is designated as having an asynchronous result; otherwise, false.

IsDefault

Gets whether the current member is the default member for the declaring type.

bool IsDefault { get; }

Property Value

Boolean:

true if the current member is the default member for the declaring type; otherwise, false.

IsDynamicReturnType

Gets whether the return type is a dynamic type.

bool IsDynamicReturnType { get; }

Property Value

Boolean:

true if the return type is a dynamic type; otherwise, false.

IsExtension

Gets whether the current member is decorated as an extension method.

bool IsExtension { get; }

Property Value

Boolean:

true if the current member is decorated as an extension method; otherwise, false.

IsFinal

Gets whether the current member is declared final.

bool IsFinal { get; }

Property Value

Boolean:

true if the current member is declared final; otherwise, false.

IsHidden

Gets whether the current member is decorated such that it should never be visible within an editor.

bool IsHidden { get; }

Property Value

Boolean:

true if the current member is decorated such that it should never be visible within an editor; otherwise, false.

IsImplicitDefaultConstructor

Gets whether the current member is an implicit default constructor.

bool IsImplicitDefaultConstructor { get; }

Property Value

Boolean:

true if the current member is an implicit default constructor; otherwise, false.

IsLiteral

Gets whether the current member's value is written at compile time and cannot be changed.

bool IsLiteral { get; }

Property Value

Boolean:

true if the current member's value is written at compile time and cannot be changed; otherwise, false.

IsObsolete

Gets whether the current member is decorated as obsolete.

bool IsObsolete { get; }

Property Value

Boolean:

true if the current member is decorated as obsolete; otherwise, false.

IsReadOnly

Gets whether the current member is read-only.

bool IsReadOnly { get; }

Property Value

Boolean:

true if the current member is read-only; otherwise, false.

IsStatic

Gets whether the current member is declared static.

bool IsStatic { get; }

Property Value

Boolean:

true if the current member is declared static; otherwise, false.

IsVirtual

Gets whether the current member is virtual and can be overridden.

bool IsVirtual { get; }

Property Value

Boolean:

true if the current member is virtual and can be overridden; otherwise, false.

IsWriteOnly

Gets whether the current member is write-only.

bool IsWriteOnly { get; }

Property Value

Boolean:

true if the current member is write-only; otherwise, false.

Kind

Gets a TypeMemberDefinitionKind that indicates the kind of type member definition.

TypeMemberDefinitionKind Kind { get; }

Property Value

TypeMemberDefinitionKind:

A TypeMemberDefinitionKind that indicates the kind of type member definition.

Parameters

Gets the collection of parameters to the current member.

IParameterDefinitionCollection Parameters { get; }

Property Value

IParameterDefinitionCollection:

The collection of parameters to the current member.

ReturnType

Gets the type that is returned by the current member.

ITypeReference ReturnType { get; }

Property Value

ITypeReference:

The type that is returned by the current member.

SetterAccess

Gets a TypeMemberAccess indicating the setter access visibility if this member is a property.

TypeMemberAccess SetterAccess { get; }

Property Value

TypeMemberAccess:

A TypeMemberAccess indicating the setter access visibility if this member is a property.

SourceFileLocation

Gets the source file location that contain the current member's declarations.

ISourceFileLocation SourceFileLocation { get; }

Property Value

ISourceFileLocation:

The source file location that contain the current member's declarations.

Remarks

This property only knows the source file location for member definitions loaded from code.

TypeParameters

Gets the collection of generic type parameters, when the current member is a generic method definition.

ITypeParameterCollection TypeParameters { get; }

Property Value

ITypeParameterCollection:

The collection of generic type parameters, when the current member is a generic method definition.

Inherited Members