IField Interface

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

Definition

Defines a contract for accessing field metadata.
public interface IField : IWithCustomModifiers, ITypeMember
Extends
Implemented by

Properties

IsEnumValueGets a value indicating whether the field is an enum value.
IsFixedSizeBufferGets a value indicating whether the field is a fixed-size buffer.
IsLiteralGets a value indicating whether the field is a literal (constant).
IsReadOnlyGets a value indicating whether the field is read-only.
IsVolatileGets a value indicating whether the field is volatile.
LiteralValueGets the constant value of the field, if it is a literal.
TypeGets the type of the field.

Methods

TryGetFixedSizeBufferInfo(out IType, out int)Attempts to get information about the fixed-size buffer, if applicable.

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.
TryGetOwnTypeParameters(this IMember, out IEnumerable<ITypeParameter>)Attempts to get the type parameters declared directly by the specified member if it is generic.