ITypeMemberDefinition Interface
Provides the base requirements of a type member (method, property, etc.) definition.
public interface ITypeMemberDefinition : ITypeMemberReference, IReflectionDefinition
Properties
Access
A TypeMemberAccess indicating the current member's access visibility.
DeclaringType
The ITypeDefinition representing the type that declares the current member.
DocumentationComment
The optional documentation comment, if the current member is defined in source code.
ExtensionType
The type that is implicitly used as a first argument, when an extension method is invoked.
GetterAccess
A TypeMemberAccess indicating the getter access visibility if this member is a property.
IsAbstract
Indicates whether the current member is abstract and must be overridden.
IsAdvanced
Indicates whether the current member is decorated such that it should only be visible to advanced users within an editor.
IsAsync
Indicates whether the current member is designated as having an asynchronous result.
IsDefault
Indicates whether the current member is the default member for the declaring type.
IsDynamicReturnType
Indicates whether the return type is a dynamic type.
IsExtension
Indicates whether the current member is decorated as an extension method.
IsExternalInit
Indicates whether the current member (if a property) can only be set in an initializer.
IsFinal
Indicates whether the current member is declared final.
IsHidden
Indicates whether the current member is decorated such that it should never be visible within an editor.
IsImplicitDefaultConstructor
Indicates whether the current member is an implicit default constructor.
IsLiteral
Indicates whether the current member's value is written at compile time and cannot be changed.
IsObsolete
Indicates whether the current member is decorated as obsolete.
IsReadOnly
Indicates whether the current member is read-only.
IsStatic
Indicates whether the current member is declared static.
IsVirtual
Indicates whether the current member is virtual and can be overridden.
IsWriteOnly
Indicates whether the current member is write-only.
Kind
A TypeMemberDefinitionKind that indicates the kind of type member definition.
Parameters
The collection of parameters to the current member.
ReturnType
The type that is returned by the current member.
SetterAccess
A TypeMemberAccess indicating the setter access visibility if this member is a property.
SourceFileLocation
The source file location that contain the current member's declarations.
ISourceFileLocation? SourceFileLocation { get; }
Property Value
Remarks
This property only knows the source file location for member definitions loaded from code.
TypeParameters
The collection of generic type parameters, when the current member is a generic method definition.
Inherited Members
- ITypeMemberReference.IsGenericMethod
- ITypeMemberReference.IsGenericMethodDefinition
- ITypeMemberReference.TypeArguments
- IReflectionDefinition.Name