MemberModel Class

Namespace
Kampute.DocToolkit.Models
Assembly
  • Kampute.DocToolkit.dll

Definition

Represents the documentation model for a type or type member.
public abstract class MemberModel : IDocumentModel, IEquatable<MemberModel>
Inheritance
Implements
Inherited by

Remarks

The MemberModel class provides a lightweight wrapper that associates reflection metadata with documentation context. It serves as a base class for all documentation model elements.

The class provides access to reflection metadata through the Metadata property, and to documentation-specific functionality such as documentation comments and URL.

Constructors

MemberModel(IMember)Initializes a new instance of the MemberModel class.

Properties

AssemblyGets the assembly that contains the member.
ContextGets the documentation context associated with this member.
DeclaringTypeGets the declaring type of the member.
DocGets the documentation comments associated with the member.
HierarchyPathGets the hierarchy of parent document models that lead to this member.
MemberNameQualifierGets the name qualifier to use for formatting the member's name.
MetadataGets the reflection metadata for this member.
ModelTypeGets the type of the documentation model.
NameGets the formatted name of the member.
NamespaceGets the namespace that contains the member.
UrlGets the URL of the member's documentation page.

Methods

Equals(MemberModel)Determines whether the specified member definition is equal to the current member definition.
Equals(object)Determines whether the specified object is equal to the current object.
GetHashCode()Returns the hash code for this instance.
ToString()Returns a string that represents the current object.
TryGetDocumentationFile(out string)Attempts to get the relative path of the documentation file for the member.