IProperty Interface

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

Definition

Defines a contract for accessing property metadata.
public interface IProperty : IWithCustomModifiers, IWithOverloads, IWithParameters, IVirtualTypeMember
Extends
Implemented by

Properties

CanReadGets a value indicating whether the property can be read.
CanWriteGets a value indicating whether the property can be written.
GetMethodGets the get method of the property.
ImplementedPropertyGets the interface property that this property implements, if any.
IsIndexerGets a value indicating whether the property is an indexer.
IsInitOnlyGets a value indicating whether the property is init-only.
IsReadOnlyGets a value indicating whether the property is read-only.
IsRequiredGets a value indicating whether the property is required.
OverriddenPropertyGets the base property that this property overrides, if any.
SetMethodGets the set method of the property.
TypeGets the type of the property.

Methods

GetAccessors()Gets all accessor methods (get and set) of the property.

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.