An extensible tool for generating documentation for your .NET libraries. Generate HTML, Markdown or in any other format, customise the documentation at your discretion.
Namespace | Description |
---|---|
CodeMap.DeclarationNodes | Contains the declaration node definitions corresponding to declarations of assembly members (classes, properties, methods and so on). This is the entry point for generating documentation. |
CodeMap.DocumentationElements | Contains the documentation element definitions corresponding to XML elements that are extracted from a documentation XML file associated to an assembly. |
CodeMap.Html | Contains types for generating HTML pages. |
CodeMap.ReferenceData | Contains member reference definitions that can be used to create hyperlinks to referred members defined both in the documented library and dependent assemblies. |
Visual Studio enables developers to write comprehensive documentation inside their code using XML in three slashed comments, see XML Documentation Comments (C# Programming Guide) for more details about supported tags.
When we build a project that has been configured to generate XML documentation files (simply specify the output path where resulting files should be saved) Visual Studio will look for this file and display the respective documentation in IntelliSense.
This is great and all library owners should be writing documentation like this in their code, however there aren't that many tools out there that allow us to transform the XML generated documentation into something else, say JSON or custom HTML, to display the exact same documentation on the project's website.
Having a single source for documentation is the best way to ensure consistency, what you see in code is what you see on the project's website. There are no discrepancies. Writing all documentation in code may upset developers, but after all they know best what the code they are writing is all about.
CodeMap aims to bring a tool into the developers hands that allows them to generate any output format they wish from a given assembly and associated XML documentation.
This is done following the visitor design pattern, an assembly is being visited and all elements that make up an assembly get their turn. When you want to generate a specific output (say Markdown or Creole) you simply implement your own visitor.
There are some elements that do not have XML documentation correspondents, such as assemblies, modules and namespaces. You cannot write documentation for neither in code and have it generated in the resulting XML document.
This tool does not work directly on the XML file but rather on a representation of the file (XDocument), this allows for the document to be loaded, updated if necessary and only then processed. This enables the tool to support additions to the standard XML document format allowing for extra documentation to be manually added. If you want to add specific documentation to a namespace, you can, but you have to do it manually which means you follow the XML document structure as well.
This project exposes an XML Schema (.xsd) that is used for validating an XML document containing documentation to ensure that it is being correctly processed.
Some elements are ignored when processing the XML document because they either are complex to use or there is little support for them.
There are XML elements defined for various sections and limited markup support. The main sections for documentation are the following:
All of the above sections can contain documentation made out of blocks, text and limited markup. seealso does not contain any content and are interpreted as references.
The content blocks are made using the following tags:
It is not mandatory to specify the para element because it is inferred. It is mandatory to do so only when you want to distinguish two paragraphs that are one after the other, but if there is plain text that has a code or a list element then the text before the respective tag is considered a paragraph and the text afterwards is considered a separate paragraph.
For instance, the following returns section contains three paragraphs, a code block and a list.
<remarks>
This is my first paragraph.
<code>
This is a code block
</code>
This is my second paragraph.
<list>
<item>Item 1</item>
<item>Item 2</item>
<item>Item 3</item>
</list>
This is my third paragraph.
</remarks>
To distinguish two paragraphs one after the other you need to use the para tag.
<remarks>
<para>
This is my first paragraph.
</para>
<para>
This is my second paragraph.
</para>
</remarks>
Each content block can contain plain text and limited markup using the following tags:
Some XML elements lack a proper documentation and are not properly interpreted by Visual Studio.
List is one of these elements, regardless of how you define the list element, Visual Studio will display the contents as plain text. This is understandable, there should not be such complex markup in the summary of a method or parameter description.
One the other hand, the lack of documentation for this element and the lack of proper interpretation allows for more flexibility when it comes to parsing lists. This tool parses lists as follows:
This corresponds to list type bullet
and number
that have no listheader
element.
To define a list simply use the list
element, specify a type (the default is bullet
) and then define each item using an item
element. Optionally include a description
subelement (this is more for compliance with the documentation, having a description
element or not makes no difference).
Bullet (unordered) list:
<list type="bullet">
<item>this is an item</item>
<item>
<description>this is an item using description, it is the same as the first one</description>
</item>
<item>the description element is optional, use at your discretion</item>
</list>
Number (ordered) list:
<list type="number">
<item>first item</item>
<item>second item</item>
<item>third item</item>
</list>
This is where it can get a bit confusing. The definition list is inferred by the given list type (bullet
or number
) or lack of this attribute. Definition lists cannot be ordered or unordered, they define a list of terms. This makes the type attribute rather useless in this case, it can be safely omitted since the default is bullet
and alligns with the interpretation.
To create a definition list it must either have a title or one of its items to contain the term
element. The title is optional, however if the list
element is empty it will not be inferred as a definition list!
Optionally, a definition list can have a title which is defined using the listheader
element. The title can be written directly in the element or can be wrapped in a term
element.
Simple definition list:
<list>
<item>
<term>Exception</term>
<description>Describes an abnormal behaviour</description>
</item>
<item>
<term>Logging</term>
<description>Something we should be doing</description>
</item>
<item>
<term>HTTP</term>
<description>HyperText Transfer Protocol, today's standard for communication</description>
</item>
</list>
Definition list with title:
<list>
<listheader>Music Genres</listheader>
<item>
<term>Pop</term>
<description>Very popular (hence the name) genre, mostly singing nonsence.</description>
</item>
<item>
<term>Rock</term>
<description>Experiences with depth that are very musical with some grotesque exceptions that seem more like yelling than singing.</description>
</item>
<item>
<term>EDM</term>
<description>Electronic Dance Music, less singing mostly used for background noise or to help get into a specific mood.</description>
</item>
</list>
Same definition list, we can wrap the title in a term
element to conform with the documentation:
<list>
<listheader>
<term>Music Genres</term>
</listheader>
<item>
<term>Pop</term>
<description>Very popular (hence the name) genre, mostly singing nonsence.</description>
</item>
<item>
<term>Rock</term>
<description>Experiences with depth that are very musical with some grotesque exceptions that seem more like yelling than singing.</description>
</item>
<item>
<term>EDM</term>
<description>Electronic Dance Music, less singing mostly used for background noise or to help get into a specific mood.</description>
</item>
</list>
A definition list without a term for its second item:
<list>
<item>
<term>LOL</term>
<description>Usually meaning laughing out loud, can be confused with League of Legends, a very popular video game.</description>
</item>
<item>
<description>For some reason I forgot to mention the term I am currently describing, Infer this!</description>
</item>
</list>
This is where things will get a bit interesting. Tables are useful in a lot of scenarios, however there is no explicit syntax for them.
To define a table specify the type
of a list
to table
. To define the header rows (if any) use the listheader
element, to define each column header specify multiple term
elements.
To define each row use the item
element and for each column use a description
element.
The number of columns is determined by the maximum number of term
or description
elements found in an enclosing element (listheader
or item
). If there are missing values for a column header or row then they will be filled with blank.
Simple table:
<list type="table">
<listheader>
<term>Column 1</term>
<term>Column 2</term>
</listheader>
<item>
<description>Row 1, Column 1</description>
<description>Row 1, Column 2</description>
</item>
<item>
<description>Row 2, Column 1</description>
<description>Row 2, Column 2</description>
</item>
<item>
<description>Row 3, Column 1</description>
<description>Row 3, Column 2</description>
</item>
</list>
Table without heading:
<list type="table">
<item>
<description>Row 1, Column 1</description>
<description>Row 1, Column 2</description>
</item>
<item>
<description>Row 2, Column 1</description>
<description>Row 2, Column 2</description>
</item>
<item>
<description>Row 3, Column 1</description>
<description>Row 3, Column 2</description>
</item>
</list>
Table with missing values for last column:
<list type="table">
<listheader>
<term>Column 1</term>
</listheader>
<item>
<description>Row 1, Column 1</description>
</item>
<item>
<description>Row 2, Column 1</description>
<description>Row 2, Column 2</description>
</item>
<item>
<description>Row 3, Column 1</description>
</item>
</list>
True
2
"Andrei15193"
"Release"
"Andrei15193"
"An extensible tool for generating documentation for your .NET libraries. Generate HTML, Markdown or in any other format, customise the documentation at your discretion."
"1.0.0.0"
"1.0.0-beta3"
"RepositoryUrl"
"https://github.com/Andrei15193/CodeMap.git"
"CodeMap"
"CodeMap"
8
True
".NETStandard,Version=v2.1"
".NET Standard 2.1"
Contains the declaration node definitions corresponding to declarations of assembly members (classes, properties, methods and so on). This is the entry point for generating documentation.
Name | Description |
---|---|
AccessModifier | Represents the access modifier of a declared member of an assembly. |
Name | Description |
---|---|
AssemblyDeclaration | Represents a documented assembly. |
AssemblyDocumentationAddition | Represents a documentation addition at the assembly level. |
AttributeData | Contains the information used to decorate a member with an attribute. |
AttributeParameterData | Contains information used for an attribute parameter. |
ClassDeclaration | Represents a documented class declaration. |
ConstantDeclaration | Represents a documented constant declared by a type. |
ConstructorDeclaration | Represents a documented constructor declared by a type. |
DeclarationFilter | A declaration filter used to select which MemberInfos to convert. |
DeclarationNode | A documentation element that is part of the documentation tree for an Assembly and associated XML documentation. |
DeclarationNodeVisitor | Represents a visitor for DeclarationNode instances. |
DelegateDeclaration | Represents a documented delegate declaration. |
EnumDeclaration | Represents a documented enum declaration. |
EventAccessorData | Represents accessor information (adder and remover) for an event. |
EventDeclaration | Represents a documented event declared by a type. |
FieldDeclaration | Represents a documented constant declared by a type. |
GenericMethodParameterData | Represents a documented method generic parameter. |
GenericParameterData | Represents a documented generic parameter. |
GenericTypeParameterData | Represents a documented type generic parameter. |
GlobalNamespaceDeclaration | Represents a documented global namespace. |
InterfaceDeclaration | Represents a documented interface declaration. |
MemberDeclaration | Represents a documented declared member of a type. |
MethodDeclaration | Represents a documented method declared by a type. |
MethodReturnData | Represents a documented return type. |
NamespaceDeclaration | Represents a documented namespace. |
NamespaceDocumentationAddition | Represents a documentation addition at the namespace level. |
ParameterData | Represents a documented parameter. |
PropertyDeclaration | Represents a documented property declared by a type. |
PropertyGetterData | Represents getter information of a property. |
PropertySetterData | Represents setter information of a property. |
RecordDeclaration | Represents a documented record declaration. |
StructDeclaration | Represents a documented struct declaration. |
TypeDeclaration | Represents a documented type. |
Represents the access modifier of a declared member of an assembly.
This enum is public.
Name | Value | Description |
---|---|---|
AccessModifier.Private | 0 | The member is visible only to the declaring type. |
AccessModifier.FamilyAndAssembly | 1 | The member is visible only to the declaring assembly and only to subtypes declared by the same assembly. |
AccessModifier.Assembly | 2 | The member is visible only to the declaring assembly. |
AccessModifier.Family | 3 | The member is visible to all subtypes. |
AccessModifier.FamilyOrAssembly | 4 | The member is visible to the declaring assembly and to all subtypes declared by any assembly. |
AccessModifier.Public | 5 | The member is visible to all types regradless of the assembly they are declared by. |
Represents a documented assembly.
This class is public.
This class extends DeclarationNode.
Name | Access | Description |
---|---|---|
AssemblyDeclaration.Attributes | public | The assembly attributes. |
AssemblyDeclaration.Culture | public | The assembly culture, if it is a satelite one. |
AssemblyDeclaration.Dependencies | public | The assemblies that the current one depends on. |
AssemblyDeclaration.Examples | public | The assembly examples. |
AssemblyDeclaration.Name | public | The assembly name. |
AssemblyDeclaration.Namespaces | public | The declared namespaces. |
AssemblyDeclaration.PublicKeyToken | public | The assembly public key token, if it is a signed one. |
AssemblyDeclaration.RelatedMembers | public | The assembly related members. |
AssemblyDeclaration.Remarks | public | The assembly remarks. |
AssemblyDeclaration.Summary | public | The assembly summary. |
AssemblyDeclaration.Version | public | The assembly version. |
Name | Access | Description |
---|---|---|
AssemblyDeclaration.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
AssemblyDeclaration.Apply(IEnumerable<AssemblyDocumentationAddition>) | public | Applies the first applicable AssemblyDocumentationAddition from the provided additions . |
AssemblyDeclaration.Apply(AssemblyDocumentationAddition[]) | public | Applies the first applicable AssemblyDocumentationAddition from the provided additions . |
The assembly attributes.
The type of this property is IReadOnlyCollection<AttributeData>.
This property has a public getter.
The assembly culture, if it is a satelite one.
The type of this property is string.
This property has a public getter.
The assemblies that the current one depends on.
The type of this property is IReadOnlyCollection<AssemblyReference>.
This property has a public getter.
The assembly examples.
The type of this property is IReadOnlyList<ExampleDocumentationElement>.
This property has a public getter.
The assembly name.
The type of this property is string.
This property has a public getter.
The declared namespaces.
The type of this property is IReadOnlyCollection<NamespaceDeclaration>.
This property has a public getter.
The assembly public key token, if it is a signed one.
The type of this property is string.
This property has a public getter.
The assembly related members.
The type of this property is IReadOnlyList<ReferenceDocumentationElement>.
This property has a public getter.
The assembly remarks.
The type of this property is RemarksDocumentationElement.
This property has a public getter.
The assembly summary.
The type of this property is SummaryDocumentationElement.
This property has a public getter.
The assembly version.
The type of this property is Version.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DeclarationNodeVisitor traversing the documentation tree.
Applies the first applicable AssemblyDocumentationAddition from the provided additions
.
This method is public.
The AssemblyDocumentationAdditions to look through.
Returns the current AssemblyDeclaration instance.
Thrown when additions
is null
.
It is possible to have multiple AssemblyDocumentationAdditions when working with large libraries. There may be one AssemblyDocumentationAddition for each major version. By providing them as a list it is easier to maintain because each AssemblyDocumentationAddition has its own predicate which in turn will determine which addition should be used specifically for the current AssemblyDeclaration.
Applies the first applicable AssemblyDocumentationAddition from the provided additions
.
This method is public.
The AssemblyDocumentationAdditions to look through.
Returns the current AssemblyDeclaration instance.
It is possible to have multiple AssemblyDocumentationAdditions when working with large libraries. There may be one AssemblyDocumentationAddition for each major version. By providing them as a list it is easier to maintain because each AssemblyDocumentationAddition has its own predicate which in turn will determine which addition should be used specifically for the current AssemblyDeclaration.
Represents a documentation addition at the assembly level.
This class is public.
Name | Access | Description |
---|---|---|
AssemblyDocumentationAddition.AssemblyDocumentationAddition() | protected | Initializes a new instance of the AssemblyDocumentationAddition class. |
Name | Access | Description |
---|---|---|
AssemblyDocumentationAddition.CanApply(AssemblyDeclaration) | public | A filtering predicate that indicates whether the current instance can be applied to the provided assembly . |
AssemblyDocumentationAddition.GetExamples(AssemblyDeclaration) | public | Gets the example additions for the provided assembly . |
AssemblyDocumentationAddition.GetNamespaceAdditions(AssemblyDeclaration) | public | Gets the namespace additions for the provided assembly . |
AssemblyDocumentationAddition.GetRelatedMembers(AssemblyDeclaration) | public | Gets the related members addition for the provided assembly . |
AssemblyDocumentationAddition.GetRemarks(AssemblyDeclaration) | public | Gets the remarks addition for the provided assembly . |
AssemblyDocumentationAddition.GetSummary(AssemblyDeclaration) | public | Gets the summary addition for the provided assembly . |
Unfortunately, there is no way to add documentation at the assembly level like we can add them at the type level or type member level. This class is specifically designed to address this issue by providing custom documentation for the assembly using the DocumentationElement hierarchy, the same structure that is used for type and type member documentation. The downside of this is that documentation elements are not directly created and need to be provided manually.
Generally, we can assume that the summary of an assembly can be the assembly description itself. We can write an AssemblyDocumentationAddition implementation that will retrieve this information from the related attribute. The code bellow does exactly that and it is actually used to generate the documentation that you are reading.
public class CodeMapAssemblyDocumentationAddition : AssemblyDocumentationAddition
{
public override bool CanApply(AssemblyDeclaration assemblyDeclaration)
=> assemblyDeclaration.Version.Major == 1 && assemblyDeclaration.Version.Minor == 0;
public override SummaryDocumentationElement GetSummary(AssemblyDeclaration assemblyDeclaration)
=> DocumentationElement.Summary(
DocumentationElement.Paragraph(
DocumentationElement.Text(
assemblyDeclaration
.Attributes
.Single(attribute => attribute.Type == typeof(AssemblyDescriptionAttribute))
.PositionalParameters
.Single()
.Value
.ToString()
)
)
);
}
Both MemberReferences and DeclarationNodes can be used to compare directly with MemberInfos, this is why comparisons such as attribute.Type == typeof(AssemblyDescriptionAttribute)
work. This was done to ease lookups when searching for particular types (especially when looking for attributes).
By default, all virtual methods return null
which means that no documentation is being provided at that level (summary, remarks, examples and so on). This can be useful if the related documentation is generated based on some conditions, if this conditions are not met, simply return null
.
protected
)Initializes a new instance of the AssemblyDocumentationAddition class.
This constructor is protected.
A filtering predicate that indicates whether the current instance can be applied to the provided assembly
.
This method is public.
This method is abstract.
The AssemblyDeclaration to check.
Returns true
if the current addition is applicable; false
otherwise.
Gets the example additions for the provided assembly
.
This method is public.
This method is virtual.
The AssemblyDeclaration for which to get the example additions.
Returns a collection of ExampleDocumentationElement for the provided assembly
.
Gets the namespace additions for the provided assembly
.
This method is public.
This method is virtual.
The AssemblyDeclaration for which to get the namespace additions.
Returns a collection of NamespaceDocumentationAddition for the provided assembly
.
Gets the related members addition for the provided assembly
.
This method is public.
This method is virtual.
The AssemblyDeclaration for which to get the related members addition.
Returns a collection of ReferenceDocumentationElement for the provided assembly
.
Gets the remarks addition for the provided assembly
.
This method is public.
This method is virtual.
The AssemblyDeclaration for which to get the remarks addition.
Returns a RemarksDocumentationElement for the provided assembly
.
Gets the summary addition for the provided assembly
.
This method is public.
This method is virtual.
The AssemblyDeclaration for which to get the summary addition.
Returns a SummaryDocumentationElement for the provided assembly
.
Contains the information used to decorate a member with an attribute.
This class is public.
Name | Access | Description |
---|---|---|
AttributeData.AttributeData(TypeReference, IEnumerable<AttributeParameterData>, IEnumerable<AttributeParameterData>) | public | Initializes a new instance of the AttributeData class. |
Name | Access | Description |
---|---|---|
AttributeData.NamedParameters | public | The used named parameters (fields or properties). |
AttributeData.PositionalParameters | public | The used positional (constructor) parameters. |
AttributeData.Type | public | The type of the attribute. |
Initializes a new instance of the AttributeData class.
This constructor is public.
The type of the attribute.
The used positional (constructor) parameters.
The used named parameters (fields or properties).
The used named parameters (fields or properties).
The type of this property is IReadOnlyList<AttributeParameterData>.
This property has a public getter.
The used positional (constructor) parameters.
The type of this property is IReadOnlyList<AttributeParameterData>.
This property has a public getter.
The type of the attribute.
The type of this property is TypeReference.
This property has a public getter.
Contains information used for an attribute parameter.
This class is public.
Name | Access | Description |
---|---|---|
AttributeParameterData.Name | public | The name of the parameter. |
AttributeParameterData.Type | public | The type of the parameter. |
AttributeParameterData.Value | public | The value of the parameter. |
The name of the parameter.
The type of this property is string.
This property has a public getter.
The type of the parameter.
The type of this property is BaseTypeReference.
This property has a public getter.
The value of the parameter.
The type of this property is Object.
This property has a public getter.
Represents a documented class declaration.
This class is public.
This class extends TypeDeclaration.
Name | Access | Description |
---|---|---|
ClassDeclaration.BaseClass | public | The base type. |
ClassDeclaration.Constants | public | The declared constants. |
ClassDeclaration.Constructors | public | The declared constructors. |
ClassDeclaration.Events | public | The declared events. |
ClassDeclaration.Fields | public | The declared fields. |
ClassDeclaration.GenericParameters | public | The class generic parameters. |
ClassDeclaration.ImplementedInterfaces | public | The implemented interfaces. |
ClassDeclaration.IsAbstract | public | Indicates whether the class is abstract. |
ClassDeclaration.IsSealed | public | Indicates whether the class is sealed. |
ClassDeclaration.IsStatic | public | Indicates whether the class is static. |
ClassDeclaration.Members | public | The declared members. |
ClassDeclaration.Methods | public | The declared method. |
ClassDeclaration.NestedClasses | public | The declared nested classes. |
ClassDeclaration.NestedDelegates | public | The declared nested delegates. |
ClassDeclaration.NestedEnums | public | The declared nested enums. |
ClassDeclaration.NestedInterfaces | public | The declared nested interfaces. |
ClassDeclaration.NestedRecords | public | The declared nested records. |
ClassDeclaration.NestedStructs | public | The declared nested structs. |
ClassDeclaration.NestedTypes | public | The declared nested types. |
ClassDeclaration.Properties | public | The declared properties. |
Name | Access | Description |
---|---|---|
ClassDeclaration.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The base type.
The type of this property is TypeReference.
This property has a public getter.
The declared constants.
The type of this property is IReadOnlyCollection<ConstantDeclaration>.
This property has a public getter.
The declared constructors.
The type of this property is IReadOnlyCollection<ConstructorDeclaration>.
This property has a public getter.
The declared events.
The type of this property is IReadOnlyCollection<EventDeclaration>.
This property has a public getter.
The declared fields.
The type of this property is IReadOnlyCollection<FieldDeclaration>.
This property has a public getter.
The class generic parameters.
The type of this property is IReadOnlyList<GenericTypeParameterData>.
This property has a public getter.
The implemented interfaces.
The type of this property is IReadOnlyCollection<TypeReference>.
This property has a public getter.
Indicates whether the class is abstract.
The type of this property is bool.
This property has a public getter.
Indicates whether the class is sealed.
The type of this property is bool.
This property has a public getter.
Indicates whether the class is static.
The type of this property is bool.
This property has a public getter.
The declared members.
The type of this property is IReadOnlyCollection<MemberDeclaration>.
This property has a public getter.
The declared method.
The type of this property is IReadOnlyCollection<MethodDeclaration>.
This property has a public getter.
The declared nested classes.
The type of this property is IReadOnlyCollection<ClassDeclaration>.
This property has a public getter.
The declared nested delegates.
The type of this property is IReadOnlyCollection<DelegateDeclaration>.
This property has a public getter.
The declared nested enums.
The type of this property is IReadOnlyCollection<EnumDeclaration>.
This property has a public getter.
The declared nested interfaces.
The type of this property is IReadOnlyCollection<InterfaceDeclaration>.
This property has a public getter.
The declared nested records.
The type of this property is IReadOnlyCollection<RecordDeclaration>.
This property has a public getter.
The declared nested structs.
The type of this property is IReadOnlyCollection<StructDeclaration>.
This property has a public getter.
The declared nested types.
The type of this property is IReadOnlyCollection<TypeDeclaration>.
This property has a public getter.
The declared properties.
The type of this property is IReadOnlyCollection<PropertyDeclaration>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DeclarationNodeVisitor traversing the documentation tree.
Represents a documented constant declared by a type.
This class is public.
This class extends MemberDeclaration.
Name | Access | Description |
---|---|---|
ConstantDeclaration.IsShadowing | public | Indicates whether the constant hides a member from a base type. |
ConstantDeclaration.Type | public | The constant type. |
ConstantDeclaration.Value | public | The constant value. |
Name | Access | Description |
---|---|---|
ConstantDeclaration.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
Indicates whether the constant hides a member from a base type.
The type of this property is bool.
This property has a public getter.
The constant type.
The type of this property is BaseTypeReference.
This property has a public getter.
The constant value.
The type of this property is Object.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DeclarationNodeVisitor traversing the documentation tree.
Represents a documented constructor declared by a type.
This class is public.
This class extends MemberDeclaration.
Name | Access | Description |
---|---|---|
ConstructorDeclaration.Exceptions | public | Documented exceptions that might be thrown when calling the constructor. |
ConstructorDeclaration.Parameters | public | The constructor parameters. |
Name | Access | Description |
---|---|---|
ConstructorDeclaration.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
Documented exceptions that might be thrown when calling the constructor.
The type of this property is IReadOnlyCollection<ExceptionDocumentationElement>.
This property has a public getter.
The constructor parameters.
The type of this property is IReadOnlyList<ParameterData>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DeclarationNodeVisitor traversing the documentation tree.
A declaration filter used to select which MemberInfos to convert.
This class is public.
Name | Access | Description |
---|---|---|
DeclarationFilter.DeclarationFilter() | public |
Name | Access | Description |
---|---|---|
DeclarationFilter.All | public | Gets a DeclarationFilter that maps all non compiler generated MemberInfos. |
Name | Access | Description |
---|---|---|
DeclarationFilter.ShouldMap(MemberInfo) | public | Determines whether the provided memberInfo should be mapped. |
DeclarationFilter.ShouldMap(Type) | public | Determines whether the provided type should be mapped. |
DeclarationFilter.ShouldMap(FieldInfo) | public | Determines whether the provided fieldInfo should be mapped. |
DeclarationFilter.ShouldMap(ConstructorInfo) | public | Determines whether the provided constructorInfo should be mapped. |
DeclarationFilter.ShouldMap(EventInfo) | public | Determines whether the provided eventInfo should be mapped. |
DeclarationFilter.ShouldMap(PropertyInfo) | public | Determines whether the provided propertyInfo should be mapped. |
DeclarationFilter.ShouldMap(MethodInfo) | public | Determines whether the provided methodInfo should be mapped. |
DeclarationFilter.ShouldMapPropertyAccessor(MethodInfo) | public | Determines whether the provided property accessor should be mapped. |
This constructor is public.
Gets a DeclarationFilter that maps all non compiler generated MemberInfos.
The type of this property is DeclarationFilter.
This property has a public getter.
This property is static.
Determines whether the provided memberInfo
should be mapped.
This method is public.
This method is virtual.
The MemberInfo to check.
Returns true
if the provided memberInfo
should be mapped; false
otherwise.
Determines whether the provided type
should be mapped.
This method is public.
This method is virtual.
Returns true
if the provided type
should be mapped; false
otherwise.
Determines whether the provided fieldInfo
should be mapped.
This method is public.
This method is virtual.
Returns true
if the provided fieldInfo
should be mapped; false
otherwise.
Determines whether the provided constructorInfo
should be mapped.
This method is public.
This method is virtual.
The ConstructorInfo to check.
Returns true
if the provided constructorInfo
should be mapped; false
otherwise.
Determines whether the provided eventInfo
should be mapped.
This method is public.
This method is virtual.
Returns true
if the provided eventInfo
should be mapped; false
otherwise.
Determines whether the provided propertyInfo
should be mapped.
This method is public.
This method is virtual.
The PropertyInfo to check.
Returns true
if the provided propertyInfo
should be mapped; false
otherwise.
Determines whether the provided methodInfo
should be mapped.
This method is public.
This method is virtual.
The MethodInfo to check.
Returns true
if the provided methodInfo
should be mapped; false
otherwise.
Determines whether the provided property accessor should be mapped.
This method is public.
This method is virtual.
The MethodInfo representing the property accessor to check.
Returns true
if the provided property accessor should be mapped; false
otherwise.
A documentation element that is part of the documentation tree for an Assembly and associated XML documentation.
This class is public.
This class implements the following interfaces: IEquatable<MemberReference>, IEquatable<MemberInfo>, IEquatable<Assembly>, IEquatable<AssemblyName>.
Name | Access | Description |
---|---|---|
DeclarationNode.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
DeclarationNode.AsMeberReference() | public | Gets the current instance as a MemberReference. |
DeclarationNode.Create(Assembly) | public | Creates an AssemblyDeclaration from the provided assembly . |
DeclarationNode.Create(Assembly, DeclarationFilter) | public | Creates an AssemblyDeclaration from the provided assembly . |
DeclarationNode.Create(Assembly, MemberDocumentationCollection, DeclarationFilter) | public | Creates an AssemblyDeclaration from the provided assembly . |
DeclarationNode.Equals(object) | public | Determines whether the current TypeDeclaration is equal to the provided obj . |
DeclarationNode.Equals(MemberReference) | public | Determines whether the current DeclarationNode is equal to the provided memberReference . |
DeclarationNode.Equals(MemberInfo) | public | Determines whether the current DeclarationNode is equal to the provided memberInfo . |
DeclarationNode.Equals(Assembly) | public | Determines whether the current DeclarationNode is equal to the provided assembly . |
DeclarationNode.Equals(AssemblyName) | public | Determines whether the current DeclarationNode is equal to the provided assemblyName . |
DeclarationNode.GetHashCode() | public | Gets the hash code for the current instance. |
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is abstract.
The DeclarationNodeVisitor traversing the documentation tree.
Gets the current instance as a MemberReference.
This method is public.
Returns the MemberReference pointing towards this declaration.
Member references are designed to contain the necessary minimum information for creating links in documentation files. This streamlines the generation of links as DeclarationNodes themselves can be treated as MemberReferences when generating them.
Creates an AssemblyDeclaration from the provided assembly
.
This method is public.
This method is static.
The Assembly from which to create a AssemblyDeclaration.
Returns an AssemblyDeclaration from the provided assembly
.
Thrown when assembly
is null
.
Creates an AssemblyDeclaration from the provided assembly
.
This method is public.
This method is static.
The Assembly from which to create a AssemblyDeclaration.
A DeclarationFilter used to select which MemberInfos will be mapped to DeclarationNodes.
Returns an AssemblyDeclaration from the provided assembly
.
Thrown when assembly
is null
.
Creates an AssemblyDeclaration from the provided assembly
.
This method is public.
This method is static.
The Assembly from which to create a AssemblyDeclaration.
A MemberDocumentationCollection containing written documentation to associated to DeclarationNodes representing assembly member declarations.
A DeclarationFilter used to select which MemberInfos will be mapped to DeclarationNodes.
Returns an AssemblyDeclaration from the provided assembly
.
Thrown when assembly
or membersDocumentation
are null
.
Determines whether the current TypeDeclaration is equal to the provided obj
.
This method is public.
This method is an override.
This method is sealed.
Returns true
if the current TypeDeclaration references the provided obj
; false
otherwise.
If the provided obj
is a Type instance then the comparison is done by comparing members and determining whether the current instance actually maps to the provided Type. Otherwise the equality is determined by comparing references.
Determines whether the current DeclarationNode is equal to the provided memberReference
.
This method is public.
The MemberReference to compare to.
Returns true
if the current DeclarationNode references the provided memberReference
; false
otherwise.
Determines whether the current DeclarationNode is equal to the provided memberInfo
.
This method is public.
The MemberInfo to compare to.
Returns true
if the current DeclarationNode references the provided memberInfo
; false
otherwise.
Determines whether the current DeclarationNode is equal to the provided assembly
.
This method is public.
Returns true
if the current DeclarationNode references the provided assembly
; false
otherwise.
Determines whether the current DeclarationNode is equal to the provided assemblyName
.
This method is public.
The AssemblyName to compare to.
Returns true
if the current DeclarationNode references the provided assemblyName
; false
otherwise.
Gets the hash code for the current instance.
This method is public.
This method is an override.
This method is sealed.
Returns the hash code for the current instance.
Represents a visitor for DeclarationNode instances.
This class is public.
Name | Access | Description |
---|---|---|
DeclarationNodeVisitor.DeclarationNodeVisitor() | protected | Initializes a new instance of the DeclarationNodeVisitor class. |
protected
)Initializes a new instance of the DeclarationNodeVisitor class.
This constructor is protected.
protected internal
)Visits an AssemblyDeclaration.
This method is protected internal.
This method is abstract.
The AssemblyDeclaration to visit.
protected internal
)Visits a ClassDeclaration.
This method is protected internal.
This method is abstract.
The ClassDeclaration to visit.
protected internal
)Visits a ConstantDeclaration.
This method is protected internal.
This method is abstract.
The ConstantDeclaration to visit.
protected internal
)Visits a ConstructorDeclaration.
This method is protected internal.
This method is abstract.
The ConstructorDeclaration to visit.
protected internal
)Visits a DelegateDeclaration.
This method is protected internal.
This method is abstract.
The DelegateDeclaration to visit.
protected internal
)Visits an EnumDeclaration.
This method is protected internal.
This method is abstract.
The EnumDeclaration to visit.
protected internal
)Visits a EventDeclaration.
This method is protected internal.
This method is abstract.
The EventDeclaration to visit.
protected internal
)Visits a FieldDeclaration.
This method is protected internal.
This method is abstract.
The FieldDeclaration to visit.
protected internal
)Visits an InterfaceDeclaration.
This method is protected internal.
This method is abstract.
The InterfaceDeclaration to visit.
protected internal
)Visits a MethodDeclaration.
This method is protected internal.
This method is abstract.
The MethodDeclaration to visit.
protected internal
)Visits a NamespaceDeclaration.
This method is protected internal.
This method is abstract.
The NamespaceDeclaration to visit.
protected internal
)Visits a PropertyDeclaration.
This method is protected internal.
This method is abstract.
The PropertyDeclaration to visit.
protected internal
)Visits a RecordDeclaration.
This method is protected internal.
This method is abstract.
The RecordDeclaration to visit.
protected internal
)Visits a StructDeclaration.
This method is protected internal.
This method is abstract.
The StructDeclaration to visit.
Represents a documented delegate declaration.
This class is public.
This class extends TypeDeclaration.
Name | Access | Description |
---|---|---|
DelegateDeclaration.Exceptions | public | The delegate documented exceptions. |
DelegateDeclaration.GenericParameters | public | The delegate generic parameters. |
DelegateDeclaration.Parameters | public | The delegate parameters. |
DelegateDeclaration.Return | public | The documented delegate return value. |
Name | Access | Description |
---|---|---|
DelegateDeclaration.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The delegate documented exceptions.
The type of this property is IReadOnlyList<ExceptionDocumentationElement>.
This property has a public getter.
The delegate generic parameters.
The type of this property is IReadOnlyList<GenericTypeParameterData>.
This property has a public getter.
The delegate parameters.
The type of this property is IReadOnlyList<ParameterData>.
This property has a public getter.
The documented delegate return value.
The type of this property is MethodReturnData.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DeclarationNodeVisitor traversing the documentation tree.
Represents a documented enum declaration.
This class is public.
This class extends TypeDeclaration.
Name | Access | Description |
---|---|---|
EnumDeclaration.Members | public | The enum members. |
EnumDeclaration.UnderlyingType | public | The underlying type of the enum members. |
Name | Access | Description |
---|---|---|
EnumDeclaration.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The enum members.
The type of this property is IReadOnlyList<ConstantDeclaration>.
This property has a public getter.
The underlying type of the enum members.
The type of this property is TypeReference.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DeclarationNodeVisitor traversing the documentation tree.
Represents accessor information (adder and remover) for an event.
This class is public.
Name | Access | Description |
---|---|---|
EventAccessorData.Attributes | public | The accessor attributes. |
EventAccessorData.ReturnAttributes | public | The accessor return attributes. |
The accessor attributes.
The type of this property is IReadOnlyCollection<AttributeData>.
This property has a public getter.
The accessor return attributes.
The type of this property is IReadOnlyCollection<AttributeData>.
This property has a public getter.
Represents a documented event declared by a type.
This class is public.
This class extends MemberDeclaration.
Name | Access | Description |
---|---|---|
EventDeclaration.Adder | public | Information about the adder accessor. |
EventDeclaration.Exceptions | public | Documented exceptions that might be thrown by subscribers. |
EventDeclaration.IsAbstract | public | Indicates whether the event has been marked as abstract. |
EventDeclaration.IsOverride | public | Indicates whether the event is an override. |
EventDeclaration.IsSealed | public | Indicates whether the event has been marked as sealed. |
EventDeclaration.IsShadowing | public | Indicates whether the event hides a member from a base type. |
EventDeclaration.IsStatic | public | Indicates whether the event is static. |
EventDeclaration.IsVirtual | public | Indicates whether the event has been marked as virtual. |
EventDeclaration.Remover | public | Information about the remover accessor. |
EventDeclaration.Type | public | The event type. |
Name | Access | Description |
---|---|---|
EventDeclaration.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
Information about the adder accessor.
The type of this property is EventAccessorData.
This property has a public getter.
Documented exceptions that might be thrown by subscribers.
The type of this property is IReadOnlyCollection<ExceptionDocumentationElement>.
This property has a public getter.
Indicates whether the event has been marked as abstract.
The type of this property is bool.
This property has a public getter.
Indicates whether the event is an override.
The type of this property is bool.
This property has a public getter.
Indicates whether the event has been marked as sealed.
The type of this property is bool.
This property has a public getter.
Indicates whether the event hides a member from a base type.
The type of this property is bool.
This property has a public getter.
Indicates whether the event is static.
The type of this property is bool.
This property has a public getter.
Indicates whether the event has been marked as virtual.
The type of this property is bool.
This property has a public getter.
Information about the remover accessor.
The type of this property is EventAccessorData.
This property has a public getter.
The event type.
The type of this property is BaseTypeReference.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DeclarationNodeVisitor traversing the documentation tree.
Represents a documented constant declared by a type.
This class is public.
This class extends MemberDeclaration.
Name | Access | Description |
---|---|---|
FieldDeclaration.IsReadOnly | public | Indicates whether the field is read only. |
FieldDeclaration.IsShadowing | public | Indicates whether the field hides a member from a base type. |
FieldDeclaration.IsStatic | public | Indicates whether the field is static. |
FieldDeclaration.Type | public | The field type. |
Name | Access | Description |
---|---|---|
FieldDeclaration.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
Indicates whether the field is read only.
The type of this property is bool.
This property has a public getter.
Indicates whether the field hides a member from a base type.
The type of this property is bool.
This property has a public getter.
Indicates whether the field is static.
The type of this property is bool.
This property has a public getter.
The field type.
The type of this property is BaseTypeReference.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DeclarationNodeVisitor traversing the documentation tree.
Represents a documented method generic parameter.
This class is public.
This class extends GenericParameterData.
Name | Access | Description |
---|---|---|
GenericMethodParameterData.DeclaringMethod | public | The method declaring the generic parameter. |
Name | Access | Description |
---|---|---|
GenericMethodParameterData.Equals(Type) | public | Determines whether the current GenericMethodParameterData is equal to the provided type . |
The method declaring the generic parameter.
The type of this property is MethodDeclaration.
This property has a public getter.
Determines whether the current GenericMethodParameterData is equal to the provided type
.
This method is public.
This method is an override.
Returns true
if the current GenericMethodParameterData references the provided type
; false
otherwise.
Represents a documented generic parameter.
This class is public.
This class implements the following interfaces: IEquatable<Type>.
Name | Access | Description |
---|---|---|
GenericParameterData.Description | public | The generic parameter description. |
GenericParameterData.HasDefaultConstructorConstraint | public | Indicates whether the generic argument must have a public parameterless constructor. |
GenericParameterData.HasNonNullableValueTypeConstraint | public | Indicates whether the generic argument must be a non nullable value type. |
GenericParameterData.HasReferenceTypeConstraint | public | Indicates whether the generic argument must be a reference type. |
GenericParameterData.HasUnmanagedTypeConstraint | public | Indicates whether the generic argument must be an unmanaged type. |
GenericParameterData.IsContravariant | public | Indicates whether the parameter is contravariant. |
GenericParameterData.IsCovariant | public | Indicates whether the parameter is covariant. |
GenericParameterData.Name | public | The name of the generic parameter. |
GenericParameterData.Position | public | The position of the generic parameter. |
GenericParameterData.TypeConstraints | public | The generic argument type constraints (base class, implemented interfaces, generic argument inheritance). |
Name | Access | Description |
---|---|---|
GenericParameterData.Equals(Type) | public | Determines whether the current GenericParameterData is equal to the provided type . |
GenericParameterData.Equals(object) | public | Determines whether the current GenericParameterData is equal to the provided obj . |
GenericParameterData.GetHashCode() | public | Gets the hash code for the current instance. |
The generic parameter description.
The type of this property is BlockDescriptionDocumentationElement.
This property has a public getter.
Indicates whether the generic argument must have a public parameterless constructor.
The type of this property is bool.
This property has a public getter.
Indicates whether the generic argument must be a non nullable value type.
The type of this property is bool.
This property has a public getter.
Indicates whether the generic argument must be a reference type.
The type of this property is bool.
This property has a public getter.
Indicates whether the generic argument must be an unmanaged type.
The type of this property is bool.
This property has a public getter.
Indicates whether the parameter is contravariant.
The type of this property is bool.
This property has a public getter.
Indicates whether the parameter is covariant.
The type of this property is bool.
This property has a public getter.
The name of the generic parameter.
The type of this property is string.
This property has a public getter.
The position of the generic parameter.
The type of this property is int.
This property has a public getter.
The generic argument type constraints (base class, implemented interfaces, generic argument inheritance).
The type of this property is IReadOnlyCollection<BaseTypeReference>.
This property has a public getter.
Determines whether the current GenericParameterData is equal to the provided type
.
This method is public.
This method is abstract.
Returns true
if the current GenericParameterData references the provided type
; false
otherwise.
Determines whether the current GenericParameterData is equal to the provided obj
.
This method is public.
This method is an override.
This method is sealed.
Returns true
if the current GenericParameterData references the provided obj
; false
otherwise.
If the provided obj
is a Type instance then the comparison is done by comparing members and determining whether the current instance actually maps to the provided Type. Otherwise the equality is determined by comparing references.
Gets the hash code for the current instance.
This method is public.
This method is an override.
This method is sealed.
Returns the hash code for the current instance.
Represents a documented type generic parameter.
This class is public.
This class extends GenericParameterData.
Name | Access | Description |
---|---|---|
GenericTypeParameterData.DeclaringType | public | The type declaring the generic parameter. |
Name | Access | Description |
---|---|---|
GenericTypeParameterData.Equals(Type) | public | Determines whether the current GenericTypeParameterData is equal to the provided type . |
The type declaring the generic parameter.
The type of this property is TypeDeclaration.
This property has a public getter.
Determines whether the current GenericTypeParameterData is equal to the provided type
.
This method is public.
This method is an override.
Returns true
if the current GenericTypeParameterData references the provided type
; false
otherwise.
Represents a documented global namespace.
This class is public.
This class extends NamespaceDeclaration.
Represents a documented interface declaration.
This class is public.
This class extends TypeDeclaration.
Name | Access | Description |
---|---|---|
InterfaceDeclaration.BaseInterfaces | public | The base interfaces. |
InterfaceDeclaration.Events | public | The declared events. |
InterfaceDeclaration.GenericParameters | public | The interface generic parameters. |
InterfaceDeclaration.Members | public | The declared members. |
InterfaceDeclaration.Methods | public | The declared method. |
InterfaceDeclaration.Properties | public | The declared properties. |
Name | Access | Description |
---|---|---|
InterfaceDeclaration.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The base interfaces.
The type of this property is IReadOnlyCollection<TypeReference>.
This property has a public getter.
The declared events.
The type of this property is IReadOnlyCollection<EventDeclaration>.
This property has a public getter.
The interface generic parameters.
The type of this property is IReadOnlyList<GenericTypeParameterData>.
This property has a public getter.
The declared members.
The type of this property is IReadOnlyCollection<MemberDeclaration>.
This property has a public getter.
The declared method.
The type of this property is IReadOnlyCollection<MethodDeclaration>.
This property has a public getter.
The declared properties.
The type of this property is IReadOnlyCollection<PropertyDeclaration>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DeclarationNodeVisitor traversing the documentation tree.
Represents a documented declared member of a type.
This class is public.
This class extends DeclarationNode.
Name | Access | Description |
---|---|---|
MemberDeclaration.AccessModifier | public | The member access modifier. |
MemberDeclaration.Attributes | public | The member attributes. |
MemberDeclaration.DeclaringType | public | The member declaring type. |
MemberDeclaration.Examples | public | The member examples. |
MemberDeclaration.Name | public | The member name. |
MemberDeclaration.RelatedMembers | public | The related members of the declared member. |
MemberDeclaration.Remarks | public | The member remarks. |
MemberDeclaration.Summary | public | The member summary. |
The member access modifier.
The type of this property is AccessModifier.
This property has a public getter.
The member attributes.
The type of this property is IReadOnlyCollection<AttributeData>.
This property has a public getter.
The member declaring type.
The type of this property is TypeDeclaration.
This property has a public getter.
The member examples.
The type of this property is IReadOnlyList<ExampleDocumentationElement>.
This property has a public getter.
The member name.
The type of this property is string.
This property has a public getter.
The related members of the declared member.
The type of this property is IReadOnlyList<ReferenceDocumentationElement>.
This property has a public getter.
The member remarks.
The type of this property is RemarksDocumentationElement.
This property has a public getter.
The member summary.
The type of this property is SummaryDocumentationElement.
This property has a public getter.
Represents a documented method declared by a type.
This class is public.
This class extends MemberDeclaration.
Name | Access | Description |
---|---|---|
MethodDeclaration.Exceptions | public | Documented exceptions that might be thrown when calling the method. |
MethodDeclaration.GenericParameters | public | The method generic parameters. |
MethodDeclaration.IsAbstract | public | Indicates whether the method has been marked as abstract. |
MethodDeclaration.IsOverride | public | Indicates whether the method is an override. |
MethodDeclaration.IsSealed | public | Indicates whether the method has been marked as sealed. |
MethodDeclaration.IsShadowing | public | Indicates whether the method hides a member from a base type. |
MethodDeclaration.IsStatic | public | Indicates whether the method is static. |
MethodDeclaration.IsVirtual | public | Indicates whether the method has been marked as virtual. |
MethodDeclaration.Parameters | public | The method parameters. |
MethodDeclaration.Return | public | The documented method return value. |
Name | Access | Description |
---|---|---|
MethodDeclaration.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
Documented exceptions that might be thrown when calling the method.
The type of this property is IReadOnlyCollection<ExceptionDocumentationElement>.
This property has a public getter.
The method generic parameters.
The type of this property is IReadOnlyList<GenericMethodParameterData>.
This property has a public getter.
Indicates whether the method has been marked as abstract.
The type of this property is bool.
This property has a public getter.
Indicates whether the method is an override.
The type of this property is bool.
This property has a public getter.
Indicates whether the method has been marked as sealed.
The type of this property is bool.
This property has a public getter.
Indicates whether the method hides a member from a base type.
The type of this property is bool.
This property has a public getter.
Indicates whether the method is static.
The type of this property is bool.
This property has a public getter.
Indicates whether the method has been marked as virtual.
The type of this property is bool.
This property has a public getter.
The method parameters.
The type of this property is IReadOnlyList<ParameterData>.
This property has a public getter.
The documented method return value.
The type of this property is MethodReturnData.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DeclarationNodeVisitor traversing the documentation tree.
Represents a documented return type.
This class is public.
Name | Access | Description |
---|---|---|
MethodReturnData.Attributes | public | The return attributes. |
MethodReturnData.Description | public | The content of the returns section. |
MethodReturnData.Type | public | The return type. |
The return attributes.
The type of this property is IReadOnlyCollection<AttributeData>.
This property has a public getter.
The content of the returns section.
The type of this property is BlockDescriptionDocumentationElement.
This property has a public getter.
The return type.
The type of this property is BaseTypeReference.
This property has a public getter.
Represents a documented namespace.
This class is public.
This class extends DeclarationNode.
Name | Access | Description |
---|---|---|
NamespaceDeclaration.Assembly | public | The declaring assembly. |
NamespaceDeclaration.Classes | public | The declared classes in this namespace. |
NamespaceDeclaration.DeclaredTypes | public | The declared types in this namespace. |
NamespaceDeclaration.Delegates | public | The declared delegates in this namespace. |
NamespaceDeclaration.Enums | public | The declared enums in this namespace. |
NamespaceDeclaration.Examples | public | The namespace examples. |
NamespaceDeclaration.Interfaces | public | The declared interfaces in this namespace. |
NamespaceDeclaration.Name | public | The namespace name. |
NamespaceDeclaration.Records | public | The declared records in this namespace. |
NamespaceDeclaration.RelatedMembers | public | The namespace related members. |
NamespaceDeclaration.Remarks | public | The namespace remarks. |
NamespaceDeclaration.Structs | public | The declared structs in this namespace. |
NamespaceDeclaration.Summary | public | The namespace summary. |
Name | Access | Description |
---|---|---|
NamespaceDeclaration.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
NamespaceDeclaration.Apply(IEnumerable<NamespaceDocumentationAddition>) | public | Applies the first applicable NamespaceDocumentationAddition from the provided additions . |
NamespaceDeclaration.Apply(NamespaceDocumentationAddition[]) | public | Applies the first applicable NamespaceDocumentationAddition from the provided additions . |
The declaring assembly.
The type of this property is AssemblyDeclaration.
This property has a public getter.
The declared classes in this namespace.
The type of this property is IReadOnlyCollection<ClassDeclaration>.
This property has a public getter.
The declared types in this namespace.
The type of this property is IReadOnlyCollection<TypeDeclaration>.
This property has a public getter.
The declared delegates in this namespace.
The type of this property is IReadOnlyCollection<DelegateDeclaration>.
This property has a public getter.
The declared enums in this namespace.
The type of this property is IReadOnlyCollection<EnumDeclaration>.
This property has a public getter.
The namespace examples.
The type of this property is IReadOnlyList<ExampleDocumentationElement>.
This property has a public getter.
The declared interfaces in this namespace.
The type of this property is IReadOnlyCollection<InterfaceDeclaration>.
This property has a public getter.
The namespace name.
The type of this property is string.
This property has a public getter.
The declared records in this namespace.
The type of this property is IReadOnlyCollection<RecordDeclaration>.
This property has a public getter.
The namespace related members.
The type of this property is IReadOnlyList<ReferenceDocumentationElement>.
This property has a public getter.
The namespace remarks.
The type of this property is RemarksDocumentationElement.
This property has a public getter.
The declared structs in this namespace.
The type of this property is IReadOnlyCollection<StructDeclaration>.
This property has a public getter.
The namespace summary.
The type of this property is SummaryDocumentationElement.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DeclarationNodeVisitor traversing the documentation tree.
Applies the first applicable NamespaceDocumentationAddition from the provided additions
.
This method is public.
The NamespaceDocumentationAdditions to look through.
Returns the current NamespaceDeclaration instance.
Thrown when additions
is null
.
It is possible to have multiple NamespaceDocumentationAdditions when working with large libraries. There may be one NamespaceDocumentationAddition for each major version. By providing them as a list it is easier to maintain because each NamespaceDocumentationAddition has its own predicate which in turn will determine which addition should be used specifically for the current NamespaceDeclaration.
Applies the first applicable NamespaceDocumentationAddition from the provided additions
.
This method is public.
The NamespaceDocumentationAdditions to look through.
Returns the current NamespaceDeclaration instance.
Thrown when additions
is null
.
It is possible to have multiple NamespaceDocumentationAdditions when working with large libraries. There may be one NamespaceDocumentationAddition for each major version. By providing them as a list it is easier to maintain because each NamespaceDocumentationAddition has its own predicate which in turn will determine which addition should be used specifically for the current NamespaceDeclaration.
Represents a documentation addition at the namespace level.
This class is public.
Name | Access | Description |
---|---|---|
NamespaceDocumentationAddition.NamespaceDocumentationAddition() | protected | Initializes a new instance of the NamespaceDocumentationAddition class. |
Name | Access | Description |
---|---|---|
NamespaceDocumentationAddition.CanApply(NamespaceDeclaration) | public | A filtering predicate that indicates whether the current instance can be applied to the provided namespace . |
NamespaceDocumentationAddition.GetExamples(NamespaceDeclaration) | public | Gets the example additions for the provided namespace . |
NamespaceDocumentationAddition.GetRelatedMembers(NamespaceDeclaration) | public | Gets the related members addition for the provided namespace . |
NamespaceDocumentationAddition.GetRemarks(NamespaceDeclaration) | public | Gets the remarks addition for the provided namespace . |
NamespaceDocumentationAddition.GetSummary(NamespaceDeclaration) | public | Gets the summary addition for the provided namespace . |
protected
)Initializes a new instance of the NamespaceDocumentationAddition class.
This constructor is protected.
A filtering predicate that indicates whether the current instance can be applied to the provided namespace
.
This method is public.
This method is abstract.
The NamespaceDeclaration to check.
Returns true
if the current addition is applicable; false
otherwise.
Gets the example additions for the provided namespace
.
This method is public.
This method is virtual.
The NamespaceDeclaration for which to get the example additions.
Returns a collection of ExampleDocumentationElement for the provided namespace
.
Gets the related members addition for the provided namespace
.
This method is public.
This method is virtual.
The NamespaceDeclaration for which to get the related members addition.
Returns a collection of ReferenceDocumentationElement for the provided namespace
.
Gets the remarks addition for the provided namespace
.
This method is public.
This method is virtual.
The NamespaceDeclaration for which to get the remarks addition.
Returns a RemarksDocumentationElement for the provided namespace
.
Gets the summary addition for the provided namespace
.
This method is public.
This method is virtual.
The NamespaceDeclaration for which to get the summary addition.
Returns a SummaryDocumentationElement for the provided namespace
.
Represents a documented parameter.
This class is public.
Name | Access | Description |
---|---|---|
ParameterData.Attributes | public | The parameter attributes. |
ParameterData.DefaultValue | public | The parameter default value |
ParameterData.Description | public | The parameter description. |
ParameterData.HasDefaultValue | public | Indicates whether the parameter has a default value. |
ParameterData.IsInputByReference | public | Indicates whether the parameter passed by reference and is input only (decorated with in in C#). |
ParameterData.IsInputOutputByReference | public | Indicates whether the parameter passed by reference and is input and output (decorated with ref in C#). |
ParameterData.IsOutputByReference | public | Indicates whether the parameter passed by reference and is output only (decorated with out in C#). |
ParameterData.Name | public | The parameter name. |
ParameterData.Type | public | The parameter type. |
The parameter attributes.
The type of this property is IReadOnlyCollection<AttributeData>.
This property has a public getter.
The parameter default value
The type of this property is Object.
This property has a public getter.
This property must be used in conjunction with ParameterData.HasDefaultValue as null
can be a valid default value and therefore cannot be used to determine whether there is a default value.
The parameter description.
The type of this property is BlockDescriptionDocumentationElement.
This property has a public getter.
Indicates whether the parameter has a default value.
The type of this property is bool.
This property has a public getter.
Indicates whether the parameter passed by reference and is input only (decorated with in
in C#).
The type of this property is bool.
This property has a public getter.
Indicates whether the parameter passed by reference and is input and output (decorated with ref
in C#).
The type of this property is bool.
This property has a public getter.
Indicates whether the parameter passed by reference and is output only (decorated with out
in C#).
The type of this property is bool.
This property has a public getter.
The parameter name.
The type of this property is string.
This property has a public getter.
The parameter type.
The type of this property is BaseTypeReference.
This property has a public getter.
Represents a documented property declared by a type.
This class is public.
This class extends MemberDeclaration.
Name | Access | Description |
---|---|---|
PropertyDeclaration.Exceptions | public | Documented exceptions that might be thrown when using the property. |
PropertyDeclaration.Getter | public | Information about the getter accessor. |
PropertyDeclaration.IsAbstract | public | Indicates whether the property has been marked as abstract. |
PropertyDeclaration.IsOverride | public | Indicates whether the property is an override. |
PropertyDeclaration.IsSealed | public | Indicates whether the property has been marked as sealed. |
PropertyDeclaration.IsShadowing | public | Indicates whether the property hides a member from a base type. |
PropertyDeclaration.IsStatic | public | Indicates whether the property is static. |
PropertyDeclaration.IsVirtual | public | Indicates whether the property has been marked as virtual. |
PropertyDeclaration.Parameters | public | The method parameters. |
PropertyDeclaration.Setter | public | Information about the setter accessor. |
PropertyDeclaration.Type | public | The property type. |
PropertyDeclaration.Value | public | Documentation about the how the value of the property is calculated. |
Name | Access | Description |
---|---|---|
PropertyDeclaration.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
Documented exceptions that might be thrown when using the property.
The type of this property is IReadOnlyCollection<ExceptionDocumentationElement>.
This property has a public getter.
Information about the getter accessor.
The type of this property is PropertyGetterData.
This property has a public getter.
Indicates whether the property has been marked as abstract.
The type of this property is bool.
This property has a public getter.
Indicates whether the property is an override.
The type of this property is bool.
This property has a public getter.
Indicates whether the property has been marked as sealed.
The type of this property is bool.
This property has a public getter.
Indicates whether the property hides a member from a base type.
The type of this property is bool.
This property has a public getter.
Indicates whether the property is static.
The type of this property is bool.
This property has a public getter.
Indicates whether the property has been marked as virtual.
The type of this property is bool.
This property has a public getter.
The method parameters.
The type of this property is IReadOnlyList<ParameterData>.
This property has a public getter.
Information about the setter accessor.
The type of this property is PropertySetterData.
This property has a public getter.
The property type.
The type of this property is BaseTypeReference.
This property has a public getter.
Documentation about the how the value of the property is calculated.
The type of this property is ValueDocumentationElement.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DeclarationNodeVisitor traversing the documentation tree.
Represents getter information of a property.
This class is public.
Name | Access | Description |
---|---|---|
PropertyGetterData.AccessModifier | public | The property getter access modifier. |
PropertyGetterData.Attributes | public | The getter attributes. |
PropertyGetterData.ReturnAttributes | public | The getter return attributes. |
The property getter access modifier.
The type of this property is AccessModifier.
This property has a public getter.
The getter attributes.
The type of this property is IReadOnlyCollection<AttributeData>.
This property has a public getter.
The getter return attributes.
The type of this property is IReadOnlyCollection<AttributeData>.
This property has a public getter.
Represents setter information of a property.
This class is public.
Name | Access | Description |
---|---|---|
PropertySetterData.AccessModifier | public | The property setter access modifier. |
PropertySetterData.Attributes | public | The setter attributes. |
PropertySetterData.IsInitOnly | public | Indicates whether the property can be set only when an instance is being initialized. |
PropertySetterData.ReturnAttributes | public | The setter return attributes. |
The property setter access modifier.
The type of this property is AccessModifier.
This property has a public getter.
The setter attributes.
The type of this property is IReadOnlyCollection<AttributeData>.
This property has a public getter.
Indicates whether the property can be set only when an instance is being initialized.
The type of this property is bool.
This property has a public getter.
The setter return attributes.
The type of this property is IReadOnlyCollection<AttributeData>.
This property has a public getter.
Represents a documented record declaration.
This class is public.
This class extends TypeDeclaration.
Name | Access | Description |
---|---|---|
RecordDeclaration.BaseRecord | public | The base type. |
RecordDeclaration.Constants | public | The declared constants. |
RecordDeclaration.Constructors | public | The declared constructors. |
RecordDeclaration.Events | public | The declared events. |
RecordDeclaration.Fields | public | The declared fields. |
RecordDeclaration.GenericParameters | public | The record generic parameters. |
RecordDeclaration.ImplementedInterfaces | public | The implemented interfaces. |
RecordDeclaration.IsAbstract | public | Indicates whether the record is abstract. |
RecordDeclaration.IsSealed | public | Indicates whether the record is sealed. |
RecordDeclaration.Members | public | The declared members. |
RecordDeclaration.Methods | public | The declared method. |
RecordDeclaration.NestedClasses | public | The declared nested classes. |
RecordDeclaration.NestedDelegates | public | The declared nested delegates. |
RecordDeclaration.NestedEnums | public | The declared nested enums. |
RecordDeclaration.NestedInterfaces | public | The declared nested interfaces. |
RecordDeclaration.NestedRecords | public | The declared nested records. |
RecordDeclaration.NestedStructs | public | The declared nested structs. |
RecordDeclaration.NestedTypes | public | The declared nested types. |
RecordDeclaration.Properties | public | The declared properties. |
Name | Access | Description |
---|---|---|
RecordDeclaration.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The base type.
The type of this property is TypeReference.
This property has a public getter.
The declared constants.
The type of this property is IReadOnlyCollection<ConstantDeclaration>.
This property has a public getter.
The declared constructors.
The type of this property is IReadOnlyCollection<ConstructorDeclaration>.
This property has a public getter.
The declared events.
The type of this property is IReadOnlyCollection<EventDeclaration>.
This property has a public getter.
The declared fields.
The type of this property is IReadOnlyCollection<FieldDeclaration>.
This property has a public getter.
The record generic parameters.
The type of this property is IReadOnlyList<GenericTypeParameterData>.
This property has a public getter.
The implemented interfaces.
The type of this property is IReadOnlyCollection<TypeReference>.
This property has a public getter.
Indicates whether the record is abstract.
The type of this property is bool.
This property has a public getter.
Indicates whether the record is sealed.
The type of this property is bool.
This property has a public getter.
The declared members.
The type of this property is IReadOnlyCollection<MemberDeclaration>.
This property has a public getter.
The declared method.
The type of this property is IReadOnlyCollection<MethodDeclaration>.
This property has a public getter.
The declared nested classes.
The type of this property is IReadOnlyCollection<ClassDeclaration>.
This property has a public getter.
The declared nested delegates.
The type of this property is IReadOnlyCollection<DelegateDeclaration>.
This property has a public getter.
The declared nested enums.
The type of this property is IReadOnlyCollection<EnumDeclaration>.
This property has a public getter.
The declared nested interfaces.
The type of this property is IReadOnlyCollection<InterfaceDeclaration>.
This property has a public getter.
The declared nested records.
The type of this property is IReadOnlyCollection<RecordDeclaration>.
This property has a public getter.
The declared nested structs.
The type of this property is IReadOnlyCollection<StructDeclaration>.
This property has a public getter.
The declared nested types.
The type of this property is IReadOnlyCollection<TypeDeclaration>.
This property has a public getter.
The declared properties.
The type of this property is IReadOnlyCollection<PropertyDeclaration>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DeclarationNodeVisitor traversing the documentation tree.
Represents a documented struct declaration.
This class is public.
This class extends TypeDeclaration.
Name | Access | Description |
---|---|---|
StructDeclaration.Constants | public | The declared constants. |
StructDeclaration.Constructors | public | The declared constructors. |
StructDeclaration.Events | public | The declared events. |
StructDeclaration.Fields | public | The declared fields. |
StructDeclaration.GenericParameters | public | The struct generic parameters. |
StructDeclaration.ImplementedInterfaces | public | The implemented interfaces. |
StructDeclaration.Members | public | The declared members. |
StructDeclaration.Methods | public | The declared method. |
StructDeclaration.NestedClasses | public | The declared nested classes. |
StructDeclaration.NestedDelegates | public | The declared nested delegates. |
StructDeclaration.NestedEnums | public | The declared nested enums. |
StructDeclaration.NestedInterfaces | public | The declared nested interfaces. |
StructDeclaration.NestedRecords | public | The declared nested records. |
StructDeclaration.NestedStructs | public | The declared nested structs. |
StructDeclaration.NestedTypes | public | The declared nested types. |
StructDeclaration.Properties | public | The declared properties. |
Name | Access | Description |
---|---|---|
StructDeclaration.Accept(DeclarationNodeVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The declared constants.
The type of this property is IReadOnlyCollection<ConstantDeclaration>.
This property has a public getter.
The declared constructors.
The type of this property is IReadOnlyCollection<ConstructorDeclaration>.
This property has a public getter.
The declared events.
The type of this property is IReadOnlyCollection<EventDeclaration>.
This property has a public getter.
The declared fields.
The type of this property is IReadOnlyCollection<FieldDeclaration>.
This property has a public getter.
The struct generic parameters.
The type of this property is IReadOnlyList<GenericTypeParameterData>.
This property has a public getter.
The implemented interfaces.
The type of this property is IReadOnlyCollection<TypeReference>.
This property has a public getter.
The declared members.
The type of this property is IReadOnlyCollection<MemberDeclaration>.
This property has a public getter.
The declared method.
The type of this property is IReadOnlyCollection<MethodDeclaration>.
This property has a public getter.
The declared nested classes.
The type of this property is IReadOnlyCollection<ClassDeclaration>.
This property has a public getter.
The declared nested delegates.
The type of this property is IReadOnlyCollection<DelegateDeclaration>.
This property has a public getter.
The declared nested enums.
The type of this property is IReadOnlyCollection<EnumDeclaration>.
This property has a public getter.
The declared nested interfaces.
The type of this property is IReadOnlyCollection<InterfaceDeclaration>.
This property has a public getter.
The declared nested records.
The type of this property is IReadOnlyCollection<RecordDeclaration>.
This property has a public getter.
The declared nested structs.
The type of this property is IReadOnlyCollection<StructDeclaration>.
This property has a public getter.
The declared nested types.
The type of this property is IReadOnlyCollection<TypeDeclaration>.
This property has a public getter.
The declared properties.
The type of this property is IReadOnlyCollection<PropertyDeclaration>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DeclarationNodeVisitor traversing the documentation tree.
Represents a documented type.
This class is public.
This class extends DeclarationNode.
Name | Access | Description |
---|---|---|
TypeDeclaration.AccessModifier | public | The type access modifier. |
TypeDeclaration.Assembly | public | The declaring assembly. |
TypeDeclaration.Attributes | public | The attributes decorating the type. |
TypeDeclaration.DeclaringType | public | The delcaring type. |
TypeDeclaration.Examples | public | The type examples. |
TypeDeclaration.Name | public | The type name. |
TypeDeclaration.Namespace | public | The declaring namespace. |
TypeDeclaration.RelatedMembers | public | The type related members. |
TypeDeclaration.Remarks | public | The type remarks. |
TypeDeclaration.Summary | public | The type summary. |
The type access modifier.
The type of this property is AccessModifier.
This property has a public getter.
The declaring assembly.
The type of this property is AssemblyDeclaration.
This property has a public getter.
The attributes decorating the type.
The type of this property is IReadOnlyCollection<AttributeData>.
This property has a public getter.
The delcaring type.
The type of this property is TypeDeclaration.
This property has a public getter.
The type examples.
The type of this property is IReadOnlyList<ExampleDocumentationElement>.
This property has a public getter.
The type name.
The type of this property is string.
This property has a public getter.
The declaring namespace.
The type of this property is NamespaceDeclaration.
This property has a public getter.
The type related members.
The type of this property is IReadOnlyList<ReferenceDocumentationElement>.
This property has a public getter.
The type remarks.
The type of this property is RemarksDocumentationElement.
This property has a public getter.
The type summary.
The type of this property is SummaryDocumentationElement.
This property has a public getter.
Contains the documentation element definitions corresponding to XML elements that are extracted from a documentation XML file associated to an assembly.
Name | Description |
---|---|
BlockDescriptionDocumentationElement | Represents a collection of BlockDocumentationElement contained by an XML element. |
BlockDocumentationElement | Represents a block element such as paragraphs, lists, definition lists, tables and code blocks. |
CanonicalNameResolver | Resolves XML documentation canonical names from a given MemberInfo. |
CodeBlockDocumentationElement | Represents a code block element corresponding to the code XML element. |
DefinitionListDocumentationElement | Represents a definition list element corresponding to the list XML element. |
DefinitionListItemDescriptionDocumentationElement | Represents a definition list description corresponding to the description XML element. |
DefinitionListItemDocumentationElement | Represents a definition list item corresponding to the item XML element containing both a term and a description XML element. |
DefinitionListItemTermDocumentationElement | Represents a definition list term corresponding to the term XML element. |
DefinitionListTitleDocumentationElement | Represents a definition list header corresponding to the itemheader XML element. |
DocumentationElement | A documentation element that is part of the documentation tree for an Assembly and associated XML documentation. |
DocumentationVisitor | Represents a visitor for traversing documentation trees. |
ExampleDocumentationElement | Represents an example corresponding to the example XML element. |
ExceptionDocumentationElement | Represents an exception documentation element. |
GenericParameterReferenceDocumentationElement | Represents a generic parameter reference corresponding to the typeparamref XML element. |
HyperlinkDocumentationElement | Represents an inline hyperlink that is part of a BlockDocumentationElement. |
InlineCodeDocumentationElement | Represents an inline code snippet corresponding to the c XML element. |
InlineDocumentationElement | Represents inline documentation elements that form a BlockDocumentationElement. These include plain text, inline code, parameter references, generic parameter references and member references. |
ListItemDocumentationElement | Represents a list item corresponding to the item XML element. |
MemberDocumentation | Represents a documentation entry for a specific member in the XML documentation. |
MemberDocumentationCollection | Represents a lookup collection for MemberDocumentation objects. |
MemberNameReferenceDocumentationElement | Represents an unresolved member reference corresponding to the see and seealso XML elements. |
MemberReferenceDocumentationElement | Represents a member reference corresponding to the see and seealso XML elements. |
OrderedListDocumentationElement | Represents an order list corresponding to the list XML element where the type attribute is number . |
ParagraphDocumentationElement | Represents a paragraph corresponding to the para XML element. |
ParameterReferenceDocumentationElement | Represents a parameter reference corresponding to the paramref XML element. |
ReferenceDataDocumentationElement | Represents a resolved member reference corresponding to the see and seealso XML elements. |
ReferenceDocumentationElement | Represents a member reference corresponding to the see and seealso XML elements. |
RemarksDocumentationElement | Represents a remarks section corresponding to the remarks XML element. |
SummaryDocumentationElement | Represents a summary section corresponding to the summary XML element. |
TableCellDocumentationElement | Represents a table cell corresponding to the description XML element inside a item XML element. |
TableColumnDocumentationElement | Represents a table column corresponding to the term XML element inside a listheader XML element. |
TableDocumentationElement | Represents a table element corresponding to a list XML element where the type attribute is table . |
TableRowDocumentationElement | Represents a table row corresponding to the item XML element. |
TextDocumentationElement | Represents inline text that is part of a BlockDocumentationElement. |
UnorderedListDocumentationElement | Represents an unordered list corresponding to the list XML element where the type attribute is bullet or missing. |
ValueDocumentationElement | Represents a value section corresponding to the value XML element. |
XmlDocumentationReader | Represents an XML documentation reader. |
Represents a collection of BlockDocumentationElement contained by an XML element.
This class is public.
This class extends DocumentationElement.
This class implements the following interfaces: IReadOnlyList<BlockDocumentationElement>.
Name | Access | Description |
---|---|---|
BlockDescriptionDocumentationElement.Count | public | Gets the number of BlockDocumentationElements in the collection. |
BlockDescriptionDocumentationElement.Item[int] | public | Gets the BlockDocumentationElement at the specified index. |
BlockDescriptionDocumentationElement.XmlAttributes | public | The additional XML attributes on the containing element. |
Name | Access | Description |
---|---|---|
BlockDescriptionDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
BlockDescriptionDocumentationElement.GetEnumerator() | public | Gets an IEnumerator<T> that iterates through the BlockDocumentationElement collection. |
Gets the number of BlockDocumentationElements in the collection.
The type of this property is int.
This property has a public getter.
Gets the BlockDocumentationElement at the specified index.
The type of this property is BlockDocumentationElement.
This property has a public getter.
Thrown when index
is out of range.
The additional XML attributes on the containing element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Gets an IEnumerator<T> that iterates through the BlockDocumentationElement collection.
This method is public.
Returns an IEnumerator<T> that iterates through the BlockDocumentationElement collection.
Represents a block element such as paragraphs, lists, definition lists, tables and code blocks.
This class is public.
This class extends DocumentationElement.
Resolves XML documentation canonical names from a given MemberInfo.
This class is public.
Name | Access | Description |
---|---|---|
CanonicalNameResolver.CanonicalNameResolver(IEnumerable<Assembly>) | public | Initializes a new instance of the CanonicalNameResolver class. |
Name | Access | Description |
---|---|---|
CanonicalNameResolver.GetCanonicalNameFrom(MemberInfo) | public | Gets the XML documentation canonical name for the given memberInfo . |
CanonicalNameResolver.TryFindMemberInfoFor(string) | public | Attempts to find a MemberInfo with the provided canonicalName . |
Initializes a new instance of the CanonicalNameResolver class.
This constructor is public.
The assemblies to search in for MemberInfos.
Thrown when searchAssemblies
is null
.
Thrown when searchAssemblies
contains null
.
Gets the XML documentation canonical name for the given memberInfo
.
This method is public.
The MemberInfo for which to get the canonical name.
Returns the canonical name for the given memberInfo
.
Attempts to find a MemberInfo with the provided canonicalName
.
This method is public.
The canonical name of the member to search for.
Returns the MemberInfo with the provided canonicalName
if found; otherwise null
.
Thrown when the canonical name is invalid.
Represents a code block element corresponding to the code
XML element.
This class is public.
This class extends BlockDocumentationElement.
Name | Access | Description |
---|---|---|
CodeBlockDocumentationElement.Code | public | The code inside the code block element. |
CodeBlockDocumentationElement.XmlAttributes | public | The XML attributes specified on the code block element. |
Name | Access | Description |
---|---|---|
CodeBlockDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The code inside the code block element.
The type of this property is string.
This property has a public getter.
The XML attributes specified on the code block element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a definition list element corresponding to the list
XML element.
This class is public.
This class extends BlockDocumentationElement.
Name | Access | Description |
---|---|---|
DefinitionListDocumentationElement.Items | public | The items that form the definition list. |
DefinitionListDocumentationElement.ListTitle | public | The list title of the definition list. |
DefinitionListDocumentationElement.XmlAttributes | public | The XML attributes specified on the definition list element. |
Name | Access | Description |
---|---|---|
DefinitionListDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The items that form the definition list.
The type of this property is IReadOnlyList<DefinitionListItemDocumentationElement>.
This property has a public getter.
The list title of the definition list.
The type of this property is DefinitionListTitleDocumentationElement.
This property has a public getter.
The XML attributes specified on the definition list element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a definition list description corresponding to the description
XML element.
This class is public.
This class extends DocumentationElement.
Name | Access | Description |
---|---|---|
DefinitionListItemDescriptionDocumentationElement.Content | public | The content of the paragraph. |
DefinitionListItemDescriptionDocumentationElement.XmlAttributes | public | The additional XML attributes on the definition list item element. |
Name | Access | Description |
---|---|---|
DefinitionListItemDescriptionDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The content of the paragraph.
The type of this property is IReadOnlyList<InlineDocumentationElement>.
This property has a public getter.
The additional XML attributes on the definition list item element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a definition list item corresponding to the item
XML element containing both a term
and a description
XML element.
This class is public.
This class extends DocumentationElement.
Name | Access | Description |
---|---|---|
DefinitionListItemDocumentationElement.Description | public | The term description or definition. |
DefinitionListItemDocumentationElement.Term | public | The defined term. |
DefinitionListItemDocumentationElement.XmlAttributes | public | The additional XML attributes on the definition list item element. |
Name | Access | Description |
---|---|---|
DefinitionListItemDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The term description or definition.
The type of this property is DefinitionListItemDescriptionDocumentationElement.
This property has a public getter.
The defined term.
The type of this property is DefinitionListItemTermDocumentationElement.
This property has a public getter.
The additional XML attributes on the definition list item element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a definition list term corresponding to the term
XML element.
This class is public.
This class extends DocumentationElement.
Name | Access | Description |
---|---|---|
DefinitionListItemTermDocumentationElement.Content | public | The content of the paragraph. |
DefinitionListItemTermDocumentationElement.XmlAttributes | public | The additional XML attributes on the definition list item element. |
Name | Access | Description |
---|---|---|
DefinitionListItemTermDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The content of the paragraph.
The type of this property is IReadOnlyList<InlineDocumentationElement>.
This property has a public getter.
The additional XML attributes on the definition list item element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a definition list header corresponding to the itemheader
XML element.
This class is public.
This class extends DocumentationElement.
Name | Access | Description |
---|---|---|
DefinitionListTitleDocumentationElement.Content | public | The content of the paragraph. |
DefinitionListTitleDocumentationElement.XmlAttributes | public | The additional XML attributes on the definition list item element. |
Name | Access | Description |
---|---|---|
DefinitionListTitleDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The content of the paragraph.
The type of this property is IReadOnlyList<InlineDocumentationElement>.
This property has a public getter.
The additional XML attributes on the definition list item element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
A documentation element that is part of the documentation tree for an Assembly and associated XML documentation.
This class is public.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is abstract.
The DocumentationVisitor traversing the documentation tree.
Creates a BlockDescriptionDocumentationElement with the provided blockElements
.
This method is public.
This method is static.
The BlockDocumentationElements to wrap.
Returns a BlockDescriptionDocumentationElement with the provided blockElements
.
Thrown when blockElements
is null
.
Thrown when blockElements
contain null
elements.
Creates a BlockDescriptionDocumentationElement with the provided blockElements
.
This method is public.
This method is static.
The BlockDocumentationElements to wrap.
Returns a BlockDescriptionDocumentationElement with the provided blockElements
.
Thrown when blockElements
is null
.
Thrown when blockElements
contain null
elements.
Creates a BlockDescriptionDocumentationElement with the provided blockElements
.
This method is public.
This method is static.
The BlockDocumentationElements to wrap.
The XML attributes specified on the container element.
Returns a BlockDescriptionDocumentationElement with the provided blockElements
.
Thrown when blockElements
or xmlAttributes
are null
.
Thrown when blockElements
or xmlAttributes
contain null
values.
Creates a CodeBlockDocumentationElement for the provided code
.
This method is public.
This method is static.
The code block inside the code
element.
Returns a CodeBlockDocumentationElement for the provided code
.
Thrown when code
is null
.
Creates a CodeBlockDocumentationElement for the provided code
.
This method is public.
This method is static.
The code block inside the code
element.
The XML attributes specified on the code block element.
Returns a CodeBlockDocumentationElement for the provided code
.
Thrown when code
is null
.
Thrown when xmlAttributes
contain null
values.
Creates a DefinitionListDocumentationElement with the provided items
.
This method is public.
This method is static.
The list items inside the list
XML element.
Returns a DefinitionListDocumentationElement with the provided items
.
Thrown when items
is null
.
Thrown when items
contains null
elements.
Creates a DefinitionListDocumentationElement with the provided items
.
This method is public.
This method is static.
The list items inside the list
XML element.
Returns a DefinitionListDocumentationElement with the provided items
.
Thrown when items
is null
.
Thrown when items
contains null
elements.
Creates a DefinitionListDocumentationElement with the provided items
.
This method is public.
This method is static.
The list items inside the list
XML element.
The XML attributes specified on the definition list element.
Returns a DefinitionListDocumentationElement with the provided items
.
Thrown when items
is null
.
Thrown when items
or xmlAttributes
contain null
values.
Creates a DefinitionListDocumentationElement with the provided items
.
This method is public.
This method is static.
The list title inside the itemheader
XML element.
The list items inside the list
XML element.
Returns a DefinitionListDocumentationElement with the provided items
.
Thrown when items
is null
.
Thrown when listTitle
or items
contain null
elements.
Creates a DefinitionListDocumentationElement with the provided items
.
This method is public.
This method is static.
The list title inside the itemheader
XML element.
The list items inside the list
XML element.
Returns a DefinitionListDocumentationElement with the provided items
.
Thrown when items
is null
.
Thrown when listTitle
or items
contain null
elements.
Creates a DefinitionListDocumentationElement with the provided items
.
This method is public.
This method is static.
The list title inside the itemheader
XML element.
The list items inside the list
XML element.
The XML attributes specified on the definition list element.
Returns a DefinitionListDocumentationElement with the provided items
.
Thrown when items
is null
.
Thrown when listTitle
, items
or xmlAttributes
contain null
values.
Creates a DefinitionListItemDocumentationElement with the provided term
and description
.
This method is public.
This method is static.
The content inside the term
XML element of an item
XML element.
The content inside the description
XML element of an item
XML element.
Returns a DefinitionListItemDocumentationElement with the provided term
and description
.
Thrown when term
or description
are null
.
Thrown when term
or description
contain null
elements.
Creates a DefinitionListItemDocumentationElement with the provided term
and description
.
This method is public.
This method is static.
The content inside the term
XML element of an item
XML element.
The content inside the description
XML element of an item
XML element.
The XML attributes specified on the definition list item element.
Returns a DefinitionListItemDocumentationElement with the provided term
and description
.
Thrown when term
or description
are null
.
Thrown when term
, description
or xmlAttributes
contain null
values.
Creates a DefinitionListItemDescriptionDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the description
XML element.
Returns a DefinitionListItemDescriptionDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a DefinitionListItemDescriptionDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the description
XML element.
Returns a DefinitionListItemDescriptionDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a DefinitionListItemDescriptionDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the description
XML element.
The XML attributes specified on the paragraph element.
Returns a DefinitionListItemDescriptionDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
or xmlAttributes
contain null
values.
Creates a DefinitionListItemTermDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the term
XML element.
Returns a DefinitionListItemTermDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a DefinitionListItemTermDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the term
XML element.
Returns a DefinitionListItemTermDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a DefinitionListItemTermDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the term
XML element.
The XML attributes specified on the paragraph element.
Returns a DefinitionListItemTermDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
or xmlAttributes
contain null
values.
Creates a DefinitionListTitleDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the itemheader
XML element.
Returns a DefinitionListTitleDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a DefinitionListTitleDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the itemheader
XML element.
Returns a DefinitionListTitleDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a DefinitionListItemTermDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the itemheader
XML element.
The XML attributes specified on the paragraph element.
Returns a DefinitionListItemTermDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
or xmlAttributes
contain null
values.
Creates an ExampleDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the example
XML element.
Returns an ExampleDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates an ExampleDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the example
XML element.
Returns an ExampleDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates an ExampleDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the example
XML element.
The XML attributes specified on the example element.
Returns an ExampleDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
or xmlAttributes
contain null
values.
Creates an ExceptionDocumentationElement with the provided description
.
This method is public.
This method is static.
The exception being thrown.
The content of the exception
XML element.
Returns an ExceptionDocumentationElement with the provided description
.
Thrown when description
is null
.
Thrown when description
contains null
elements.
Creates an ExceptionDocumentationElement with the provided description
.
This method is public.
This method is static.
The exception being thrown.
The content of the exception
XML element.
Returns an ExceptionDocumentationElement with the provided description
.
Thrown when description
is null
.
Thrown when description
contains null
elements.
Creates an ExceptionDocumentationElement with the provided description
.
This method is public.
This method is static.
The exception being thrown.
The content of the exception
XML element.
The XML attributes specified on the example element.
Returns an ExceptionDocumentationElement with the provided description
.
Thrown when description
is null
.
Thrown when description
contains null
elements.
Creates a GenericParameterReferenceDocumentationElement with the provided genericParameterName
.
This method is public.
This method is static.
The name of the referred generic parameter using the typeparamref
XML element.
Returns a GenericParameterReferenceDocumentationElement with the provided genericParameterName
.
Thrown when genericParameterName
is null
.
Creates a GenericParameterReferenceDocumentationElement with the provided genericParameterName
.
This method is public.
This method is static.
The name of the referred generic parameter using the typeparamref
XML element.
The XML attributes specified on the generic parameter reference element.
Returns a GenericParameterReferenceDocumentationElement with the provided genericParameterName
.
Thrown when genericParameterName
is null
.
Thrown when xmlAttributes
contain null
values.
Creates a HyperlinkDocumentationElement with the provided destination
and content
.
This method is public.
This method is static.
The hyperlink destination (URL).
The hyperlink content to display when generating links.
Returns a HyperlinkDocumentationElement with the provided content
.
Thrown when destination
or content
are null
.
Thrown when content
contains null
values.
Creates a HyperlinkDocumentationElement with the provided destination
and content
.
This method is public.
This method is static.
The hyperlink destination (URL).
The hyperlink content to display when generating links.
Returns a HyperlinkDocumentationElement with the provided content
.
Thrown when destination
or content
are null
.
Thrown when content
contains null
values.
Creates a HyperlinkDocumentationElement with the provided destination
and content
.
This method is public.
This method is static.
The hyperlink destination (URL).
The hyperlink content (text).
The XML attributes specified on the inline code element.
Returns a HyperlinkDocumentationElement with the provided content
.
Thrown when destination
or content
are null
.
Thrown when xmlAttributes
or content
contain null
values.
Creates an InlineCodeDocumentationElement with the provided code
.
This method is public.
This method is static.
The code inside a c
XML element.
Returns an InlineCodeDocumentationElement with the provided code
.
Thrown when code
is null
.
Creates an InlineCodeDocumentationElement with the provided code
.
This method is public.
This method is static.
The code inside a c
XML element.
The XML attributes specified on the inline code element.
Returns an InlineCodeDocumentationElement with the provided code
.
Thrown when code
is null
.
Thrown when xmlAttributes
contain null
values.
Creates a ListItemDocumentationElement with the provided content
.
This method is public.
This method is static.
The content inside the item
XML element.
Returns a ListItemDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a ListItemDocumentationElement with the provided content
.
This method is public.
This method is static.
The content inside the item
XML element.
Returns a ListItemDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a ListItemDocumentationElement with the provided content
.
This method is public.
This method is static.
The content inside the item
XML element.
The XML attributes specified on the list item element.
Returns a ListItemDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
or xmlAttributes
contain null
values.
Creates a ReferenceDataDocumentationElement with the provided referredMember
.
This method is public.
This method is static.
The resolved MemberReference referred by a canonical name using a see
XML element.
Returns a ReferenceDataDocumentationElement with the provided referredMember
.
Thrown when referredMember
is null
.
Creates a MemberInfo with the provided memberInfo
.
This method is public.
This method is static.
The resolved MemberInfo referred by a canonical name using a see
XML element.
Returns a MemberInfo with the provided memberInfo
.
Thrown when memberInfo
is null
.
Creates a MemberNameReferenceDocumentationElement with the provided canonicalName
.
This method is public.
This method is static.
The canonical name for a member referred using a see
XML element.
Returns a MemberNameReferenceDocumentationElement with the provided canonicalName
.
Thrown when canonicalName
is null
.
Creates a ReferenceDataDocumentationElement with the provided referredMember
.
This method is public.
This method is static.
The resolved MemberReference referred by a canonical name using a see
XML element.
The XML attributes specified on the member reference element.
Returns a ReferenceDataDocumentationElement with the provided referredMember
.
Thrown when referredMember
is null
.
Thrown when xmlAttributes
contain null
values.
Creates a ReferenceDataDocumentationElement with the provided memberInfo
.
This method is public.
This method is static.
The resolved MemberInfo referred by a canonical name using a see
XML element.
The reference content to display when generating links.
Returns a ReferenceDataDocumentationElement with the provided memberInfo
.
Thrown when memberInfo
or content
are null
.
Thrown when content
contains null
values.
Creates a ReferenceDataDocumentationElement with the provided memberInfo
.
This method is public.
This method is static.
The resolved MemberInfo referred by a canonical name using a see
XML element.
The reference content to display when generating links.
Returns a ReferenceDataDocumentationElement with the provided memberInfo
.
Thrown when memberInfo
or content
are null
.
Thrown when content
contains null
values.
Creates a MemberNameReferenceDocumentationElement with the provided canonicalName
.
This method is public.
This method is static.
The canonical name for a member referred using a see
XML element.
The XML attributes specified on the member reference element.
Returns a MemberNameReferenceDocumentationElement with the provided canonicalName
.
Thrown when canonicalName
is null
.
Thrown when xmlAttributes
contain null
values.
Creates a MemberNameReferenceDocumentationElement with the provided canonicalName
.
This method is public.
This method is static.
The canonical name for a member referred using a see
XML element.
The reference content to display when generating links.
Returns a MemberNameReferenceDocumentationElement with the provided canonicalName
.
Thrown when canonicalName
or content
are null
.
Creates a MemberNameReferenceDocumentationElement with the provided canonicalName
.
This method is public.
This method is static.
The canonical name for a member referred using a see
XML element.
The reference content to display when generating links.
Returns a MemberNameReferenceDocumentationElement with the provided canonicalName
.
Thrown when canonicalName
or content
are null
.
Creates a ReferenceDataDocumentationElement with the provided memberInfo
.
This method is public.
This method is static.
The resolved MemberInfo referred by a canonical name using a see
XML element.
The reference content to display when generating links.
The XML attributes specified on the member reference element.
Returns a ReferenceDataDocumentationElement with the provided memberInfo
.
Thrown when memberInfo
or content
are null
.
Thrown when xmlAttributes
or content
contain null
values.
Creates a MemberNameReferenceDocumentationElement with the provided canonicalName
.
This method is public.
This method is static.
The canonical name for a member referred using a see
XML element.
The reference content to display when generating links.
The XML attributes specified on the member reference element.
Returns a MemberNameReferenceDocumentationElement with the provided canonicalName
.
Thrown when canonicalName
or content
are null
.
Thrown when xmlAttributes
or content
contain null
values.
Creates an OrderedListDocumentationElement with the provided items
.
This method is public.
This method is static.
The list items inside the list
XML element.
Returns an OrderedListDocumentationElement with the provided items
.
Thrown when items
is null
.
Thrown when items
contains null
elements.
Creates an OrderedListDocumentationElement with the provided items
.
This method is public.
This method is static.
The list items inside the list
XML element.
Returns an OrderedListDocumentationElement with the provided items
.
Thrown when items
is null
.
Thrown when items
contains null
elements.
Creates an OrderedListDocumentationElement with the provided items
.
This method is public.
This method is static.
The list items inside the list
XML element.
The XML attributes specified on the ordered list element.
Returns an OrderedListDocumentationElement with the provided items
.
Thrown when items
is null
.
Thrown when items
or xmlAttributes
contain null
values.
Creates a ParagraphDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the para
XML element.
Returns a ParagraphDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a ParagraphDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the para
XML element.
Returns a ParagraphDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a ParagraphDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the para
XML element.
The XML attributes specified on the paragraph element.
Returns a ParagraphDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
or xmlAttributes
contain null
values.
Creates a ParameterReferenceDocumentationElement with the provided parameterName
.
This method is public.
This method is static.
The name of the referred parameter using the paramref
XML element.
Returns a ParameterReferenceDocumentationElement with the provided parameterName
.
Thrown when parameterName
is null
.
Creates a ParameterReferenceDocumentationElement with the provided parameterName
.
This method is public.
This method is static.
The name of the referred parameter using the paramref
XML element.
The XML attributes specified on the parameter reference element.
Returns a ParameterReferenceDocumentationElement with the provided parameterName
.
Thrown when parameterName
is null
.
Thrown when xmlAttributes
contain null
values.
Creates a RemarksDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the remarks
XML element.
Returns a RemarksDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a RemarksDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the remarks
XML element.
Returns a RemarksDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a RemarksDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the remarks
XML element.
The XML attributes specified on the remarks element.
Returns a RemarksDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
or xmlAttributes
contain null
values.
Creates a SummaryDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the summary
XML element.
Returns a SummaryDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a SummaryDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the summary
XML element.
Returns a SummaryDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a SummaryDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the summary
XML element.
The XML attributes specified on the summary element.
Returns a SummaryDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
or xmlAttributes
contain null
values.
Creates a TableDocumentationElement with the provided rows
.
This method is public.
This method is static.
The rows corresponding to item
XML elements of a list
XML element.
Returns a TableDocumentationElement with the provided rows
.
Thrown when rows
is null
.
Thrown when rows
contain null
elements.
The returned table is normalized in the sense that if there were rows with missing cells then they will be filled with empty ones so that the table has equal number of columns for each row.
Creates a TableDocumentationElement with the provided rows
.
This method is public.
This method is static.
The rows corresponding to item
XML elements of a list
XML element.
Returns a TableDocumentationElement with the provided rows
.
Thrown when rows
is null
.
Thrown when rows
contain null
elements.
The returned table is normalized in the sense that if there were rows with missing cells then they will be filled with empty ones so that the table has equal number of columns for each row.
Creates a TableDocumentationElement with the provided columns
and rows
.
This method is public.
This method is static.
The columns inside the listheader
XML element of a list
XML element.
The rows corresponding to item
XML elements of a list
XML element.
Returns a TableDocumentationElement with the provided columns
and rows
.
Thrown when columns
or rows
are null
.
Thrown when columns
or rows
contain null
elements.
The returned table is normalized in the sense that if there were more columns or rows with missing cells they will be filled with empty ones so that the table has equal number of columns for each row, including the header.
Creates a TableDocumentationElement with the provided columns
and rows
.
This method is public.
This method is static.
The columns inside the listheader
XML element of a list
XML element.
The rows corresponding to item
XML elements of a list
XML element.
Returns a TableDocumentationElement with the provided columns
and rows
.
Thrown when columns
or rows
are null
.
Thrown when columns
or rows
contain null
elements.
The returned table is normalized in the sense that if there were more columns or rows with missing cells they will be filled with empty ones so that the table has equal number of columns for each row, including the header.
Creates a TableDocumentationElement with the provided rows
.
This method is public.
This method is static.
The rows corresponding to item
XML elements of a list
XML element.
The XML attributes specified on the table element.
Returns a TableDocumentationElement with the provided rows
.
Thrown when rows
is null
.
Thrown when rows
or xmlAttributes
contain null
values.
The returned table is normalized in the sense that if there were rows with missing cells then they will be filled with empty ones so that the table has equal number of columns for each row.
Creates a TableDocumentationElement with the provided columns
and rows
.
This method is public.
This method is static.
The columns inside the listheader
XML element of a list
XML element.
The rows corresponding to item
XML elements of a list
XML element.
The XML attributes specified on the table element.
Returns a TableDocumentationElement with the provided columns
and rows
.
Thrown when columns
or rows
are null
.
Thrown when columns
, rows
or xmlAttributes
contain null
values.
The returned table is normalized in the sense that if there were more columns or rows with missing cells they will be filled with empty ones so that the table has equal number of columns for each row, including the header.
Creates a TableCellDocumentationElement with the provided content
.
This method is public.
This method is static.
The content inside the description
XML element of an item
XML element.
Returns a TableCellDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a TableCellDocumentationElement with the provided content
.
This method is public.
This method is static.
The content inside the description
XML element of an item
XML element.
Returns a TableCellDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a TableCellDocumentationElement with the provided content
.
This method is public.
This method is static.
The content inside the description
XML element of an item
XML element.
The XML attributes specified on the table cell element.
Returns a TableCellDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
or xmlAttributes
contain null
values.
Cretes a TableCellDocumentationElement for the provided name
.
This method is public.
This method is static.
The content inside a term
XML element inside the listheader
XML element.
Returns a TableCellDocumentationElement for the provided name
.
Thrown when name
is null
.
Thrown when name
contains null
elements.
Cretes a TableCellDocumentationElement for the provided name
.
This method is public.
This method is static.
The content inside a term
XML element inside the listheader
XML element.
Returns a TableCellDocumentationElement for the provided name
.
Thrown when name
is null
.
Thrown when name
contains null
elements.
Cretes a TableCellDocumentationElement for the provided name
.
This method is public.
This method is static.
The content inside a term
XML element inside the listheader
XML element.
The XML attributes specified on the table column element.
Returns a TableCellDocumentationElement for the provided name
.
Thrown when name
is null
.
Thrown when name
or xmlAttributes
contain null
values.
Creates a TableRowDocumentationElement for the provided cells
.
This method is public.
This method is static.
The content corresponding to each description
XML element inside an item
XML element.
Returns a TableRowDocumentationElement for the provided cells
.
Thrown when cells
is null
.
Thrown when cells
contain null
elements.
Creates a TableRowDocumentationElement for the provided cells
.
This method is public.
This method is static.
The content corresponding to each description
XML element inside an item
XML element.
Returns a TableRowDocumentationElement for the provided cells
.
Thrown when cells
is null
.
Thrown when cells
contain null
elements.
Creates a TableRowDocumentationElement for the provided cells
.
This method is public.
This method is static.
The content corresponding to each description
XML element inside an item
XML element.
The XML attributes specified on the table row element.
Returns a TableRowDocumentationElement for the provided cells
.
Thrown when cells
is null
.
Thrown when cells
or xmlAttributes
contain null
values.
Creates a TextDocumentationElement with the provided text
.
This method is public.
This method is static.
Plain text inside XML elements.
Returns a TextDocumentationElement with the provided text
.
Thrown when text
is null
.
Creates an UnorderedListDocumentationElement with the provided items
.
This method is public.
This method is static.
The list items inside the list
XML element.
Returns an UnorderedListDocumentationElement with the provided items
.
Thrown when items
is null
.
Thrown when items
contains null
elements.
Creates an UnorderedListDocumentationElement with the provided items
.
This method is public.
This method is static.
The list items inside the list
XML element.
Returns an UnorderedListDocumentationElement with the provided items
.
Thrown when items
is null
.
Thrown when items
contains null
elements.
Creates an UnorderedListDocumentationElement with the provided items
.
This method is public.
This method is static.
The list items inside the list
XML element.
The XML attributes specified on the unordered list element.
Returns an UnorderedListDocumentationElement with the provided items
.
Thrown when items
is null
.
Thrown when items
or xmlAttributes
contain null
values.
Creates a ValueDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the value
XML element.
Returns a ValueDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a ValueDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the value
XML element.
Returns a ValueDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
contains null
elements.
Creates a ValueDocumentationElement with the provided content
.
This method is public.
This method is static.
The content of the value
XML element.
The XML attributes specified on the value element.
Returns a ValueDocumentationElement with the provided content
.
Thrown when content
is null
.
Thrown when content
or xmlAttributes
contain null
values.
Represents a visitor for traversing documentation trees.
This class is public.
Name | Access | Description |
---|---|---|
DocumentationVisitor.DocumentationVisitor() | protected | Initializes a new instance of the DocumentationVisitor class. |
protected
)Initializes a new instance of the DocumentationVisitor class.
This constructor is protected.
protected internal
)Visits a code block element.
This method is protected internal.
This method is abstract.
The CodeBlockDocumentationElement to visit.
protected internal
)Visits a definition list element.
This method is protected internal.
This method is abstract.
The DefinitionListDocumentationElement to visit.
protected internal
)Visits a definition list item.
This method is protected internal.
This method is abstract.
The DefinitionListItemDocumentationElement to visit.
protected internal
)Visits a definition list item description.
This method is protected internal.
This method is abstract.
The DefinitionListItemDescriptionDocumentationElement to visit.
protected internal
)Visits a definition list item term.
This method is protected internal.
This method is abstract.
The DefinitionListItemTermDocumentationElement to visit.
protected internal
)Visits a definition list title element.
This method is protected internal.
This method is abstract.
The DefinitionListTitleDocumentationElement to visit.
protected internal
)Visits an example element.
This method is protected internal.
This method is abstract.
The ExampleDocumentationElement to visit.
protected internal
)Visits an exception element.
This method is protected internal.
This method is abstract.
The ExceptionDocumentationElement to visit.
protected internal
)Visits an inline generic parameter reference.
This method is protected internal.
This method is abstract.
The GenericParameterReferenceDocumentationElement to visit.
protected internal
)Visits a hyperlink.
This method is protected internal.
This method is abstract.
The HyperlinkDocumentationElement to visit.
protected internal
)Visits an inline code snippet.
This method is protected internal.
This method is abstract.
The InlineCodeDocumentationElement to visit.
protected internal
)Visits an unresolved inline member reference.
This method is protected internal.
This method is virtual.
The MemberNameReferenceDocumentationElement to visit.
protected internal
)Visits an inline member reference.
This method is protected internal.
This method is abstract.
The ReferenceDataDocumentationElement to visit.
protected internal
)Visits a list item element.
This method is protected internal.
This method is abstract.
The ListItemDocumentationElement to visit.
protected internal
)Visits an ordered list element.
This method is protected internal.
This method is abstract.
The OrderedListDocumentationElement to visit.
protected internal
)Visits a paragraph element.
This method is protected internal.
This method is abstract.
The ParagraphDocumentationElement to visit.
protected internal
)Visits an inline parameter reference.
This method is protected internal.
This method is abstract.
The ParameterReferenceDocumentationElement to visit.
protected internal
)Visits a remarks element.
This method is protected internal.
This method is abstract.
The RemarksDocumentationElement to visit.
protected internal
)Visits a summary element.
This method is protected internal.
This method is abstract.
The SummaryDocumentationElement to visit.
protected internal
)Visits a table.
This method is protected internal.
This method is abstract.
The TableDocumentationElement to visit.
protected internal
)Visits a table cell.
This method is protected internal.
This method is abstract.
The TableCellDocumentationElement to visit.
protected internal
)Visits a table column.
This method is protected internal.
This method is abstract.
The TableColumnDocumentationElement to visit.
protected internal
)Visits a table row.
This method is protected internal.
This method is abstract.
The TableRowDocumentationElement to visit.
protected internal
)Visits plain text.
This method is protected internal.
This method is abstract.
The TextDocumentationElement to visit.
protected internal
)Visits an unordered list element.
This method is protected internal.
This method is abstract.
The UnorderedListDocumentationElement to visit.
protected internal
)Visits a value element.
This method is protected internal.
This method is abstract.
The ValueDocumentationElement to visit.
Represents an example corresponding to the example
XML element.
This class is public.
This class extends DocumentationElement.
Name | Access | Description |
---|---|---|
ExampleDocumentationElement.Content | public | The content inside the example. |
ExampleDocumentationElement.XmlAttributes | public | The additional XML attributes on the example element. |
Name | Access | Description |
---|---|---|
ExampleDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The content inside the example.
The type of this property is IReadOnlyList<BlockDocumentationElement>.
This property has a public getter.
The additional XML attributes on the example element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents an exception documentation element.
This class is public.
This class extends DocumentationElement.
Name | Access | Description |
---|---|---|
ExceptionDocumentationElement.Description | public | The description about when the exception is being thrown. |
ExceptionDocumentationElement.Exception | public | The exception being thrown. |
ExceptionDocumentationElement.XmlAttributes | public | The XML attributes specified on the generic parameter reference element. |
Name | Access | Description |
---|---|---|
ExceptionDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The description about when the exception is being thrown.
The type of this property is IReadOnlyList<BlockDocumentationElement>.
This property has a public getter.
The exception being thrown.
The type of this property is MemberReferenceDocumentationElement.
This property has a public getter.
The XML attributes specified on the generic parameter reference element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a generic parameter reference corresponding to the typeparamref
XML element.
This class is public.
This class extends InlineDocumentationElement.
Name | Access | Description |
---|---|---|
GenericParameterReferenceDocumentationElement.GenericParameterName | public | The name of the referred generic parameter. |
GenericParameterReferenceDocumentationElement.XmlAttributes | public | The XML attributes specified on the generic parameter reference element. |
Name | Access | Description |
---|---|---|
GenericParameterReferenceDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The name of the referred generic parameter.
The type of this property is string.
This property has a public getter.
The XML attributes specified on the generic parameter reference element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents an inline hyperlink that is part of a BlockDocumentationElement.
This class is public.
This class extends ReferenceDocumentationElement.
Name | Access | Description |
---|---|---|
HyperlinkDocumentationElement.Content | public | The content of the hyperlink. |
HyperlinkDocumentationElement.Destination | public | The hyperlink destination (URL). |
HyperlinkDocumentationElement.XmlAttributes | public | The XML attributes specified on the inline code element. |
Name | Access | Description |
---|---|---|
HyperlinkDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The content of the hyperlink.
The type of this property is IReadOnlyList<InlineDocumentationElement>.
This property has a public getter.
The hyperlink destination (URL).
The type of this property is string.
This property has a public getter.
The XML attributes specified on the inline code element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents an inline code snippet corresponding to the c
XML element.
This class is public.
This class extends InlineDocumentationElement.
Name | Access | Description |
---|---|---|
InlineCodeDocumentationElement.Code | public | The inline code snippet. |
InlineCodeDocumentationElement.XmlAttributes | public | The XML attributes specified on the inline code element. |
Name | Access | Description |
---|---|---|
InlineCodeDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The inline code snippet.
The type of this property is string.
This property has a public getter.
The XML attributes specified on the inline code element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents inline documentation elements that form a BlockDocumentationElement. These include plain text, inline code, parameter references, generic parameter references and member references.
This class is public.
This class extends DocumentationElement.
Represents a list item corresponding to the item
XML element.
This class is public.
This class extends DocumentationElement.
Name | Access | Description |
---|---|---|
ListItemDocumentationElement.Content | public | The content of the list item. |
ListItemDocumentationElement.XmlAttributes | public | The XML attributes specified on the list item element. |
Name | Access | Description |
---|---|---|
ListItemDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The content of the list item.
The type of this property is IReadOnlyList<InlineDocumentationElement>.
This property has a public getter.
The XML attributes specified on the list item element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a documentation entry for a specific member in the XML documentation.
This class is public.
Name | Access | Description |
---|---|---|
MemberDocumentation.CanonicalName | public | The canonical name of the documented member. |
MemberDocumentation.Examples | public | The examples sections. |
MemberDocumentation.Exceptions | public | The exceptions documentation. |
MemberDocumentation.GenericParameters | public | The generic parameters documentation. |
MemberDocumentation.Parameters | public | The parameters documentation. |
MemberDocumentation.RelatedMembers | public | The related members list. |
MemberDocumentation.Remarks | public | The remarks section. |
MemberDocumentation.Returns | public | The returns section. |
MemberDocumentation.Summary | public | The summary section. |
MemberDocumentation.Value | public | The value section. |
Initializes a new instance of the MemberDocumentation class.
This constructor is public.
The canonical name of the documented member.
Thrown when canonicalName
is null
.
Initializes a new instance of the MemberDocumentation class.
This constructor is public.
The canonical name of the documented member.
The summary section.
The generic parameters documentation.
The parameters documentation.
The returns section.
The exceptions documentation.
The remarks section.
The examples sections.
The value section.
The related members.
Thrown when canonicalName
is null
.
The canonical name of the documented member.
The type of this property is string.
This property has a public getter.
The examples sections.
The type of this property is IReadOnlyList<ExampleDocumentationElement>.
This property has a public getter.
The exceptions documentation.
The type of this property is IReadOnlyList<ExceptionDocumentationElement>.
This property has a public getter.
The generic parameters documentation.
The type of this property is IReadOnlyDictionary<string, BlockDescriptionDocumentationElement>.
This property has a public getter.
The parameters documentation.
The type of this property is IReadOnlyDictionary<string, BlockDescriptionDocumentationElement>.
This property has a public getter.
The related members list.
The type of this property is IReadOnlyList<ReferenceDocumentationElement>.
This property has a public getter.
The remarks section.
The type of this property is RemarksDocumentationElement.
This property has a public getter.
The returns section.
The type of this property is BlockDescriptionDocumentationElement.
This property has a public getter.
The summary section.
The type of this property is SummaryDocumentationElement.
This property has a public getter.
The value section.
The type of this property is ValueDocumentationElement.
This property has a public getter.
Represents a lookup collection for MemberDocumentation objects.
This class is public.
This class implements the following interfaces: IReadOnlyCollection<MemberDocumentation>.
Name | Access | Description |
---|---|---|
MemberDocumentationCollection.MemberDocumentationCollection(IEnumerable<MemberDocumentation>) | public | Initializes a new instance of the MemberDocumentationCollection class. |
Name | Access | Description |
---|---|---|
MemberDocumentationCollection.Count | public | Gets the total number of MemberDocumentation items in the collection. |
Name | Access | Description |
---|---|---|
MemberDocumentationCollection.GetEnumerator() | public | Creates an enumerator that iterates through the collection. |
MemberDocumentationCollection.TryFind(string, MemberDocumentation) | public | Attempts to find a MemberDocumentation for the provided canonicalName . |
The lookup is done by searching for the canonical name of a MemberInfo, if a case sensitive (best match) is found then the MemberDocumentation of that member is returned. Otherwsie the first case insensitive match is returned.
Initializes a new instance of the MemberDocumentationCollection class.
This constructor is public.
A collection of MemberDocumentation objects to initialize the collection with.
Thrown when membersDocumentation
is null
.
Thrown when membersDocumentation
contains null
items.
Gets the total number of MemberDocumentation items in the collection.
The type of this property is int.
This property has a public getter.
Creates an enumerator that iterates through the collection.
This method is public.
Returns an enumerator that iterates through the collection.
Attempts to find a MemberDocumentation for the provided canonicalName
.
This method is public.
The canonical name to search the related documentation for.
The related MemberDocumentation when found; null
otherwise.
This parameter is an output parameter passed by reference (out
).
Returns true
if a match was found; false
otherwise.
Represents an unresolved member reference corresponding to the see
and seealso
XML elements.
This class is public.
This class extends MemberReferenceDocumentationElement.
Name | Access | Description |
---|---|---|
MemberNameReferenceDocumentationElement.CanonicalName | public | The canonical name of the referred member. |
MemberNameReferenceDocumentationElement.Content | public | The content of the member reference. |
MemberNameReferenceDocumentationElement.XmlAttributes | public | The XML attributes specified on the member reference element. |
Name | Access | Description |
---|---|---|
MemberNameReferenceDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The canonical name of the referred member.
The type of this property is string.
This property has a public getter.
The content of the member reference.
The type of this property is IReadOnlyList<InlineDocumentationElement>.
This property has a public getter.
The XML attributes specified on the member reference element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a member reference corresponding to the see
and seealso
XML elements.
This class is public.
This class extends ReferenceDocumentationElement.
Represents an order list corresponding to the list
XML element where the type
attribute is number
.
This class is public.
This class extends BlockDocumentationElement.
Name | Access | Description |
---|---|---|
OrderedListDocumentationElement.Items | public | The items forming the ordered list. |
OrderedListDocumentationElement.XmlAttributes | public | The XML attributes specified on the ordered list element. |
Name | Access | Description |
---|---|---|
OrderedListDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The items forming the ordered list.
The type of this property is IReadOnlyList<ListItemDocumentationElement>.
This property has a public getter.
The XML attributes specified on the ordered list element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a paragraph corresponding to the para
XML element.
This class is public.
This class extends BlockDocumentationElement.
Name | Access | Description |
---|---|---|
ParagraphDocumentationElement.Content | public | The content of the paragraph. |
ParagraphDocumentationElement.XmlAttributes | public | The XML attributes specified on the paragraph element. |
Name | Access | Description |
---|---|---|
ParagraphDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The content of the paragraph.
The type of this property is IReadOnlyList<InlineDocumentationElement>.
This property has a public getter.
The XML attributes specified on the paragraph element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a parameter reference corresponding to the paramref
XML element.
This class is public.
This class extends InlineDocumentationElement.
Name | Access | Description |
---|---|---|
ParameterReferenceDocumentationElement.ParameterName | public | The name of the parameter. |
ParameterReferenceDocumentationElement.XmlAttributes | public | The XML attributes specified on the parameter reference element. |
Name | Access | Description |
---|---|---|
ParameterReferenceDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The name of the parameter.
The type of this property is string.
This property has a public getter.
The XML attributes specified on the parameter reference element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a resolved member reference corresponding to the see
and seealso
XML elements.
This class is public.
This class extends MemberReferenceDocumentationElement.
Name | Access | Description |
---|---|---|
ReferenceDataDocumentationElement.Content | public | The content of the member reference. |
ReferenceDataDocumentationElement.ReferredMember | public | The referred member. |
ReferenceDataDocumentationElement.XmlAttributes | public | The XML attributes specified on the member reference element. |
Name | Access | Description |
---|---|---|
ReferenceDataDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The content of the member reference.
The type of this property is IReadOnlyList<InlineDocumentationElement>.
This property has a public getter.
The referred member.
The type of this property is MemberReference.
This property has a public getter.
The XML attributes specified on the member reference element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a member reference corresponding to the see
and seealso
XML elements.
This class is public.
This class extends InlineDocumentationElement.
Represents a remarks section corresponding to the remarks
XML element.
This class is public.
This class extends DocumentationElement.
Name | Access | Description |
---|---|---|
RemarksDocumentationElement.Content | public | The content of the remarks section. |
RemarksDocumentationElement.XmlAttributes | public | The additional XML attributes on the remarks element. |
Name | Access | Description |
---|---|---|
RemarksDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The content of the remarks section.
The type of this property is IReadOnlyList<BlockDocumentationElement>.
This property has a public getter.
The additional XML attributes on the remarks element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a summary section corresponding to the summary
XML element.
This class is public.
This class extends DocumentationElement.
Name | Access | Description |
---|---|---|
SummaryDocumentationElement.Content | public | The content of the summary section. |
SummaryDocumentationElement.XmlAttributes | public | The XML attributes specified on the summary element. |
Name | Access | Description |
---|---|---|
SummaryDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The content of the summary section.
The type of this property is IReadOnlyList<BlockDocumentationElement>.
This property has a public getter.
The XML attributes specified on the summary element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a table cell corresponding to the description
XML element inside a item
XML element.
This class is public.
This class extends DocumentationElement.
Name | Access | Description |
---|---|---|
TableCellDocumentationElement.Content | public | The content of the table cell. |
TableCellDocumentationElement.XmlAttributes | public | The XML attributes specified on the table cell element. |
Name | Access | Description |
---|---|---|
TableCellDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The content of the table cell.
The type of this property is IReadOnlyList<InlineDocumentationElement>.
This property has a public getter.
The XML attributes specified on the table cell element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a table column corresponding to the term
XML element inside a listheader
XML element.
This class is public.
This class extends DocumentationElement.
Name | Access | Description |
---|---|---|
TableColumnDocumentationElement.Name | public | The name of the column. |
TableColumnDocumentationElement.XmlAttributes | public | The XML attributes specified on the table column element. |
Name | Access | Description |
---|---|---|
TableColumnDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The name of the column.
The type of this property is IReadOnlyList<InlineDocumentationElement>.
This property has a public getter.
The XML attributes specified on the table column element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a table element corresponding to a list
XML element where the type
attribute is table
.
This class is public.
This class extends BlockDocumentationElement.
Name | Access | Description |
---|---|---|
TableDocumentationElement.Columns | public | The columns of the table. |
TableDocumentationElement.Rows | public | The rows of the table. |
TableDocumentationElement.XmlAttributes | public | The XML attributes specified on the table element. |
Name | Access | Description |
---|---|---|
TableDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The returned table is normalized in the sense that if there were more columns or rows with missing cells they will be filled with empty ones so that the table has equal number of columns for each row, including the header.
The columns of the table.
The type of this property is IReadOnlyList<TableColumnDocumentationElement>.
This property has a public getter.
The rows of the table.
The type of this property is IReadOnlyList<TableRowDocumentationElement>.
This property has a public getter.
The XML attributes specified on the table element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a table row corresponding to the item
XML element.
This class is public.
This class extends DocumentationElement.
Name | Access | Description |
---|---|---|
TableRowDocumentationElement.Cells | public | The cells that form the table row. |
TableRowDocumentationElement.XmlAttributes | public | The XML attributes specified on the table row element. |
Name | Access | Description |
---|---|---|
TableRowDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The cells that form the table row.
The type of this property is IReadOnlyList<TableCellDocumentationElement>.
This property has a public getter.
The XML attributes specified on the table row element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents inline text that is part of a BlockDocumentationElement.
This class is public.
This class extends InlineDocumentationElement.
Name | Access | Description |
---|---|---|
TextDocumentationElement.Text | public | The plain text. |
Name | Access | Description |
---|---|---|
TextDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The plain text.
The type of this property is string.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents an unordered list corresponding to the list
XML element where the type
attribute is bullet
or missing.
This class is public.
This class extends BlockDocumentationElement.
Name | Access | Description |
---|---|---|
UnorderedListDocumentationElement.Items | public | The items that form the unordered list. |
UnorderedListDocumentationElement.XmlAttributes | public | The XML attributes specified on the unordered list element. |
Name | Access | Description |
---|---|---|
UnorderedListDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The items that form the unordered list.
The type of this property is IReadOnlyList<ListItemDocumentationElement>.
This property has a public getter.
The XML attributes specified on the unordered list element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents a value section corresponding to the value
XML element.
This class is public.
This class extends DocumentationElement.
Name | Access | Description |
---|---|---|
ValueDocumentationElement.Content | public | The content describing the value. |
ValueDocumentationElement.XmlAttributes | public | The additional XML attributes on the value element. |
Name | Access | Description |
---|---|---|
ValueDocumentationElement.Accept(DocumentationVisitor) | public | Accepts the provided visitor for traversing the documentation tree. |
The content describing the value.
The type of this property is IReadOnlyList<BlockDocumentationElement>.
This property has a public getter.
The additional XML attributes on the value element.
The type of this property is IReadOnlyDictionary<string, string>.
This property has a public getter.
Accepts the provided visitor
for traversing the documentation tree.
This method is public.
This method is an override.
The DocumentationVisitor traversing the documentation tree.
Represents an XML documentation reader.
This class is public.
Name | Access | Description |
---|---|---|
XmlDocumentationReader.XmlDocumentationReader() | public | Initializes a new instance of the XmlDocumentationReader class. |
XmlDocumentationReader.XmlDocumentationReader(MemberReferenceFactory, CanonicalNameResolver) | public | Initializes a new instance of the XmlDocumentationReader class. |
Name | Access | Description |
---|---|---|
XmlDocumentationReader.Read(TextReader) | public | Reads the XML documentation into MemberDocumentation items. |
Initializes a new instance of the XmlDocumentationReader class.
This constructor is public.
Initializes a new instance of the XmlDocumentationReader class.
This constructor is public.
The MemberReferenceFactory to use when mapping MemberInfos to MemberReferences.
The CanonicalNameResolver to use for resolving references.
Reads the XML documentation into MemberDocumentation items.
This method is public.
The TextReader from which to load MemberDocumentation items.
Returns a collection of MemberDocumentation loaded from the provided input
.
Contains types for generating HTML pages.
Name | Description |
---|---|
IMemberReferenceResolver | Exposes the interface for generating URLs for MemberReferences. |
Name | Description |
---|---|
AssemblyDeclarationExtensions | Helper methods for generating HTML pages. |
DeclarationNodeExtensions | Helper methods for generating HTML pages. |
HtmlWriterDeclarationNodeVisitor | A rudimentary HTML generator for DeclarationNodes. This is the most basic way of generating HTML documentation pages out of a DeclarationNode with customisation options. |
HtmlWriterDocumentationVisitor | A rudimentary HTML generator for DocumentationElements. This is the most basic way of generating HTML documentation out of a DocumentationElement with customisation options. |
MemberReferenceExtensions | Helper methods for generating HTML pages. |
MemberReferenceResolver | A member reference resolver composed of multiple IMemberReferenceResolvers for generating different URLs based on the library towards which the reference was made. |
MicrosoftDocsMemberReferenceResolver | A default implementation for resolving .NET Framework member references. |
Exposes the interface for generating URLs for MemberReferences.
This interface is public.
Name | Description |
---|---|
IMemberReferenceResolver.GetUrl(MemberReference) | Gets the URL (relative or absolute) for the provided memberReference . |
Gets the URL (relative or absolute) for the provided memberReference
.
This method is public.
The MemberReference for which to get the URL.
Returns the URL for the provided memberReference
.
Thrown when memberReference
is null
.
Helper methods for generating HTML pages.
This class is public.
Name | Access | Description |
---|---|---|
AssemblyDeclarationExtensions.GetInformalVersion(AssemblyDeclaration) | public | Gets the informal version from the provided assemblyDeclaration . |
Gets the informal version from the provided assemblyDeclaration
.
This method is public.
This method is static.
The AssemblyDeclaration from which to get the informal version.
Returns the informal version of the provided assemblyDeclaration
.
Helper methods for generating HTML pages.
This class is public.
Name | Access | Description |
---|---|---|
DeclarationNodeExtensions.GetFullNameReference(DeclarationNode) | public | Gets the full name reference of the provided declarationNode . |
DeclarationNodeExtensions.GetSimpleNameReference(DeclarationNode) | public | Gets the simple name reference of the provided declarationNode . |
Gets the full name reference of the provided declarationNode
.
This method is public.
This method is static.
The DeclarationNode for which to get the full name reference.
Returns the full name reference of the provided declarationNode
.
Unlike DeclarationNodeExtensions.GetSimpleNameReference(DeclarationNode), this gets the full name reference. This includes the namespace as well. Types do not have alias mapping, a reference to int
will generate System.Int32
.
This method is particularly useful for IDs as it will generate unique outputs for each member of an Assembly.
Gets the simple name reference of the provided declarationNode
.
This method is public.
This method is static.
The DeclarationNode for which to get the simple name reference.
Returns the simple name reference of the provided declarationNode
.
A simple name reference consists of just the type name and generic parameters (if any), in case of member it is the declaring type followed by the member name, generic parameters (if any) and parameters (if any).
The purpose is to get a simple name as one would normally write it in code, type aliases are covered as well. Instead of having Int32
as a simple name reference this will retrieve int
instead, just list one would write it in code.
A rudimentary HTML generator for DeclarationNodes. This is the most basic way of generating HTML documentation pages out of a DeclarationNode with customisation options.
This class is public.
This class extends DeclarationNodeVisitor.
Name | Access | Description |
---|---|---|
HtmlWriterDeclarationNodeVisitor.HtmlWriterDeclarationNodeVisitor(TextWriter, IMemberReferenceResolver) | public | Initializes a new instance of the HtmlWriterDeclarationNodeVisitor class. |
Name | Access | Description |
---|---|---|
HtmlWriterDeclarationNodeVisitor.HasDefaultSection | protected | An internal flag which indicates whether there is a DeclarationNode section element generated. |
HtmlWriterDeclarationNodeVisitor.MemberReferenceResolver | public | The IMemberReferenceResolver used to generate URLs for MemberReferences. |
HtmlWriterDeclarationNodeVisitor.TextWriter | public | The HtmlWriterDeclarationNodeVisitor.TextWriter to which the HTML document is being written to. |
To get started, simply generate a DeclarationNode using one of the factory methods then pass it to an HtmlWriterDeclarationNodeVisitor along side an IMemberReferenceResolver.
var codeMapAssemblyDeclarationNode = DeclarationNode.Create(typeof(DeclarationNode).Assembly);
var defaultMemberReferenceResolver = new MicrosoftDocsMemberReferenceResolver("netstandard-2.1", "en-US");
var memberReferenceResolver = new MemberReferenceResolver(defaultMemberReferenceResolver)
{
// Don't forget to encode URLs, the full name reference may contain characters (such as < and >) that are forbidden.
// As mentioned, the generated HTML page uses basic hash navigation, all elements can be accessed using `#FullNameReference`,
// similar to classic in-page navigation, https://stackoverflow.com/questions/24739126/scroll-to-a-specific-element-using-html
{ typeof(DeclarationNode).Assembly, MemberReferenceResolver.Create(memberReference => "#" + Uri.EscapeDataString(memberReference.GetFullNameReference())) }
};
// Create output file stream.
var outputFileInfo = new FileInfo(arguments.OutputFilePath);
outputFileInfo.Directory.Create();
using var outputFileStream = new FileStream(outputFileInfo.FullName, FileMode.Create, FileAccess.Write, FileShare.Read);
using var outputFileStreamWriter = new StreamWriter(outputFileStream);
// Instantiate the visitor.
var htmlWriterDeclarationNodeVisitor = new CodeMalHtmlWriterDocumentaitonNodeVisitor(outputFileStreamWriter, memberReferenceResolver);
// After all this setup, it is time to generate the HTML page.
codeMapAssemblyDeclaration.Accept(htmlWriterDeclarationNodeVisitor);
The entire documentation for all DeclarationNodes is written to a single output. Basic hash navigation is added through a simple JavaScript block allowing for only one element to be displayed at a given time. This enables sharing of links and bookmarking a specific DeclarationNode.
For each DeclarationNode a section
element is generated where the ID is set to the full name reference (DeclarationNodeExtensions.GetFullNameReference(DeclarationNode). This ID can be used to reference each declaration and it is used for navigation.
Most likely there are references between assemblies for which hyperlinks need to be generated. At the very least there are the type references to .NET Framework. For this an IMemberReferenceResolver needs to be provided, there are implementation already available to get started with this quickly.
Initializes a new instance of the HtmlWriterDeclarationNodeVisitor class.
This constructor is public.
The HtmlWriterDeclarationNodeVisitor.TextWriter to which to write the HTML output.
The IMemberReferenceResolver used to generate URLs for MemberReference.
Thrown when textWriter
or memberReferenceResolver
are null
.
protected
)An internal flag which indicates whether there is a DeclarationNode section
element generated.
The type of this property is bool.
This property has a protected getter.
The first section
element that is generated is considered the default, typically this would be for the AssemblyDeclaration, but HTML pages can be generated only for a type and its declared members as well.
The IMemberReferenceResolver used to generate URLs for MemberReferences.
The type of this property is IMemberReferenceResolver.
This property has a public getter.
The HtmlWriterDeclarationNodeVisitor.TextWriter to which the HTML document is being written to.
The type of this property is TextWriter.
This property has a public getter and a public setter.
protected
)Provides a DocumentationVisitor for outputting the related DocumentationElements of a DeclarationNode.
This method is protected.
This method is virtual.
Returns a DocumentationVisitor for outputting the related DocumentationElements of a DeclarationNode.
Implicitly this returns HtmlWriterDocumentationVisitor which writers HTML to a provided HtmlWriterDeclarationNodeVisitor.TextWriter. For customisation, this method can be overridden and have a different DocumentationVisitor provided.
protected
)Gets the page/section title for the provided declarationNode
.
This method is protected.
This method is virtual.
The DeclarationNode for which to get the title.
Returns the page/section title for the provided declarationNode
.
protected internal
)Visits an AssemblyDeclaration.
This method is protected internal.
This method is an override.
This method is sealed.
The AssemblyDeclaration to visit.
protected internal
)Visits a ClassDeclaration.
This method is protected internal.
This method is an override.
This method is sealed.
The ClassDeclaration to visit.
protected internal
)Visits a ConstantDeclaration.
This method is protected internal.
This method is an override.
This method is sealed.
The ConstantDeclaration to visit.
protected internal
)Visits a ConstructorDeclaration.
This method is protected internal.
This method is an override.
This method is sealed.
The ConstructorDeclaration to visit.
protected internal
)Visits a DelegateDeclaration.
This method is protected internal.
This method is an override.
This method is sealed.
The DelegateDeclaration to visit.
protected internal
)Visits an EnumDeclaration.
This method is protected internal.
This method is an override.
This method is sealed.
The EnumDeclaration to visit.
protected internal
)Visits a EventDeclaration.
This method is protected internal.
This method is an override.
This method is sealed.
The EventDeclaration to visit.
protected internal
)Visits a FieldDeclaration.
This method is protected internal.
This method is an override.
This method is sealed.
The FieldDeclaration to visit.
protected internal
)Visits an InterfaceDeclaration.
This method is protected internal.
This method is an override.
This method is sealed.
The InterfaceDeclaration to visit.
protected internal
)Visits a MethodDeclaration.
This method is protected internal.
This method is an override.
This method is sealed.
The MethodDeclaration to visit.
protected internal
)Visits a NamespaceDeclaration.
This method is protected internal.
This method is an override.
This method is sealed.
The NamespaceDeclaration to visit.
protected internal
)Visits a PropertyDeclaration.
This method is protected internal.
This method is an override.
This method is sealed.
The PropertyDeclaration to visit.
protected internal
)Visits a RecordDeclaration.
This method is protected internal.
This method is an override.
This method is sealed.
The RecordDeclaration to visit.
protected internal
)Visits a StructDeclaration.
This method is protected internal.
This method is an override.
This method is sealed.
The StructDeclaration to visit.
protected
)Writes a user-friendly name for the provided accessModifier
.
This method is protected.
This method is virtual.
The AccessModifier for which to write the user-friendly name.
protected
)Writes the HTML documentation section for the provided assembly
.
This method is protected.
This method is virtual.
The AssemblyDeclaration for which to write the documentation.
protected
)This method is protected.
This method is virtual.
protected
)Writes the HTML documentation section for the provided class
.
This method is protected.
This method is virtual.
The ClassDeclaration for which to write the documentation.
protected
)Writes the HTML documentation section for the provided constant
.
This method is protected.
This method is virtual.
The ConstantDeclaration for which to write the documentation.
protected
)Writes a constructed type reference containing one or multiple hyperlinks.
This method is protected.
This method is virtual.
The BaseTypeReference for which to write the reference.
Constructed type references can be quite complex. For instance, a constructed generic type will generate a set of hyperlinks, one being towards the generic type definition and then one hyperlink for each generic argument.
protected
)Writes the HTML section begining of a DeclarationNode.
This method is protected.
This method is virtual.
The DeclarationNode for which to write the HTML section beginning.
protected
)Writes the HTML section ending of a DeclarationNode.
This method is protected.
This method is virtual.
The DeclarationNode for which to write the HTML section ending.
protected
)Writes the HTML documentation section for the provided delegate
.
This method is protected.
The DelegateDeclaration for which to write the documentation.
protected
)Writes the HTML documentation section for the provided enum
.
This method is protected.
This method is virtual.
The EnumDeclaration for which to write the documentation.
protected
)Writes an HTML table for the provided enum members
.
This method is protected.
This method is virtual.
The enum ConstantDeclarations for which to write the HTML table.
The HTML table contains 3 columns. The first one is the member name, the second is the value of the member and the last contains the first paragraph of the summary of the related member.
protected
)Writes the HTML documentation section for the provided event
.
This method is protected.
This method is virtual.
The EventDeclaration for which to write the documentation.
protected
)Writes the examples documentation of a DeclarationNode.
This method is protected.
This method is virtual.
The ExampleDocumentationElements for which to write the HTML.
protected
)Writes the exceptions documentation of a DeclarationNode.
This method is protected.
This method is virtual.
The ExceptionDocumentationElements for which to write the HTML.
protected
)Writes the HTML documentation section for the provided field
.
This method is protected.
This method is virtual.
The FieldDeclaration for which to write the documentation.
protected
)Writes the contents of the first paragraph of the provided SummaryDocumentationElement.
This method is protected.
This method is virtual.
The SummaryDocumentationElement for which to write the contents of the first ParagraphDocumentationElement.
protected
)Writes an HTML list describing the provided genericParameters
.
This method is protected.
This method is virtual.
The GenericMethodParameterData to include in the list.
protected
)Writes the HTML document begining of a DeclarationNode.
This method is protected.
This method is virtual.
The first DeclarationNode that is visited for which the HTML document is generated.
protected
)Writes the HTML document ending of a DeclarationNode.
This method is protected.
This method is virtual.
The first DeclarationNode that is visited for which the HTML document is generated.
protected
)Writes the HTML documentation section for the provided interface
.
This method is protected.
This method is virtual.
The InterfaceDeclaration for which to write the documentation.
protected
)Writes an HTML table for the provided members
.
This method is protected.
The MemberDeclarations to include in the table.
The caption of the table.
The section id of the table.
The table contains three columns, the first one is a hyperlink with the name of the MemberDeclaration, the second one contains the access modifier user-friendly name, and the secodn column contains the first paragraph of the summary of the related MemberDeclaration.
protected
)Writes an HTML table for the provided members
.
This method is protected.
This method is virtual.
The MemberDeclarations to include in the table.
The caption of the table.
The section id of the table.
A flag indicating whether to include the access modifer column.
The table contains three columns, the first one is a hyperlink with the name of the MemberDeclaration, the second one contains the access modifier user-friendly name, and the secodn column contains the first paragraph of the summary of the related MemberDeclaration.
If hideAccessModifier
is set to true
then only the first and last columns are included.
protected
)Writes the HTML documentation section for the provided method
.
This method is protected.
This method is virtual.
The MethodDeclaration for which to write the documentation.
protected
)Writes the HTML documentation section for the provided namespace
.
This method is protected.
This method is virtual.
The NamespaceDeclaration for which to write the documentation.
protected
)Writes an HTML table for the provided namespaces
.
This method is protected.
This method is virtual.
The NamespaceDeclaration for which to write the HTML table.
The table contains two columns, one is the namespace itself, which a hyperlink towards the documentation section. The second column contains the first paragraph of the namespace summary, if there is one.
protected
)Writes an HTML navigation (similar to breadcrums) for the provided declarationNode
.
This method is protected.
This method is virtual.
The DeclarationNode for which to write the navigation.
The navigation is generated from the assembly level towards the nested member.
protected
)Writes the active navigation item of the provided declarationNode
. Typically this is just the simple name of the DeclarationNode. The active item is the current item.
This method is protected.
This method is virtual.
The DeclarationNode for which to generate the active navigation item.
protected
)Writes the navigation item of the provided declarationNode
. Typically this is a hyperlink towards the DeclarationNode.
This method is protected.
This method is virtual.
The DeclarationNode for which to generate the navigation item.
protected
)Writes an HTML navigation items (similar to breadcrums) for the provided declarationNode
.
This method is protected.
This method is virtual.
The DeclarationNode for which to write the navigation.
The navigation is generated from the assembly level towards the nested member.
This method is used by HtmlWriterDeclarationNodeVisitor.WriteNavigation(DeclarationNode) which wraps the navigation elements in a root element.
protected
)Writes the basic navigation JavaScript.
This method is protected.
This method is virtual.
The first DeclarationNode that is visited for which the HTML document is generated.
protected
)Writes other attributes for the body
element.
This method is protected.
This method is virtual.
The first DeclarationNode that is visited for which the HTML document is generated.
protected
)Writes other attributes for the html
element.
This method is protected.
This method is virtual.
The first DeclarationNode that is visited for which the HTML document is generated.
protected
)Writes other HTML body elements.
This method is protected.
This method is virtual.
The first DeclarationNode that is visited for which the HTML document is generated.
protected
)Writes other HTML head elements.
This method is protected.
This method is virtual.
The first DeclarationNode that is visited for which the HTML document is generated.
protected
)Writes other attributes for a declaration section.
This method is protected.
This method is virtual.
The DeclarationNode for which to write the HTML section beginning.
protected
)Writes the heading of a documentation section (page).
This method is protected.
This method is virtual.
The title of the page.
protected
)Writes the heading of a documentation section (page).
This method is protected.
This method is virtual.
The title of the page.
When provided, writes the user-friend name of the AccessModifier after the provided title
.
protected
)Writes an HTML list describing the provided parameters
.
This method is protected.
This method is virtual.
The ParameterData to include in the list.
protected
)Writes the HTML documentation section for the provided property
.
This method is protected.
This method is virtual.
The PropertyDeclaration for which to write the documentation.
protected
)Writes the HTML documentation section for the provided record
.
This method is protected.
This method is virtual.
The RecordDeclaration for which to write the documentation.
protected
)Writes an HTML list for the provided relatedMembers
.
This method is protected.
This method is virtual.
The ReferenceDocumentationElements for which to write the HTML list.
protected
)Writes the remarks documentation of a DeclarationNode.
This method is protected.
This method is virtual.
The RemarksDocumentationElement for which to write the HTML.
protected
)Writes the return documentation of a DeclarationNode.
This method is protected.
This method is virtual.
The MethodReturnData for which to write the HTML.
protected
)Writes the provided value
as a safe HTML string.
This method is protected.
This method is virtual.
The text to write.
If the provied value
contains HTML reserved characters, they are escaped.
protected
)Writes the HTML documentation section for the provided struct
.
This method is protected.
This method is virtual.
The StructDeclaration for which to write the documentation.
protected
)Writes the summary documentation of a DeclarationNode.
This method is protected.
This method is virtual.
The SummaryDocumentationElement for which to write the HTML.
protected
)Writes an HTML table for the provided types
.
This method is protected.
This method is virtual.
The TypeDeclarations to include in the table.
The caption of the table.
The section id of the table.
The table contains two columns, the first one is a hyperlink with the name of the TypeDeclaration, and the secodn column contains the first paragraph of the summary of the related TypeDeclaration.
protected
)Writes the value documentation of a DeclarationNode.
This method is protected.
This method is virtual.
The ValueDocumentationElement for which to write the HTML.
protected
)Writes the provided value
.
This method is protected.
This method is virtual.
The value to write.
This method is intended to write constant values declared through enums
, constant fields or attribute parameters.
A rudimentary HTML generator for DocumentationElements. This is the most basic way of generating HTML documentation out of a DocumentationElement with customisation options.
This class is public.
This class extends DocumentationVisitor.
Name | Access | Description |
---|---|---|
HtmlWriterDocumentationVisitor.HtmlWriterDocumentationVisitor(TextWriter, IMemberReferenceResolver) | public | Initializes a new instance of the HtmlWriterDocumentationVisitor class. |
Name | Access | Description |
---|---|---|
HtmlWriterDocumentationVisitor.MemberReferenceResolver | public | The IMemberReferenceResolver used to generate URLs for MemberReferences. |
HtmlWriterDocumentationVisitor.TextWriter | public | The HtmlWriterDocumentationVisitor.TextWriter to which the HTML document is being written to. |
Initializes a new instance of the HtmlWriterDocumentationVisitor class.
This constructor is public.
The HtmlWriterDocumentationVisitor.TextWriter to which to write the HTML output.
The IMemberReferenceResolver used to generate URLs for MemberReference.
Thrown when textWriter
or memberReferenceResolver
are null
.
The IMemberReferenceResolver used to generate URLs for MemberReferences.
The type of this property is IMemberReferenceResolver.
This property has a public getter.
The HtmlWriterDocumentationVisitor.TextWriter to which the HTML document is being written to.
The type of this property is TextWriter.
This property has a public getter.
protected internal
)Writes a code block (code
wrapped by pre
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The CodeBlockDocumentationElement to write from.
protected internal
)Writes a definition list (dl
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The DefinitionListDocumentationElement to write from.
protected internal
)Writes a definition list item (dt
and dd
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The DefinitionListItemDocumentationElement to write from.
protected internal
)Writes a definition list item description (dd
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The DefinitionListItemDescriptionDocumentationElement to write from.
protected internal
)Writes a definition list item term (dt
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The DefinitionListItemTermDocumentationElement to write from.
protected internal
)Writes a definition list header (h3
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The DefinitionListTitleDocumentationElement to write from.
protected internal
)Writes an example section (section
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The ExampleDocumentationElement to write from.
protected internal
)Writes an exception section (section
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The ExceptionDocumentationElement to write from.
protected internal
)Writes a generic parameter reference (parameter name wrapped in code
tags) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The GenericParameterReferenceDocumentationElement to write from.
protected internal
)Writes an anchor (a
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The HyperlinkDocumentationElement to write from.
protected internal
)Writes an inline code snippet (code
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The InlineCodeDocumentationElement to write from.
protected internal
)Writes an anchor (a
) to the HtmlWriterDocumentationVisitor.TextWriter for the provided memberInfoReference
.
This method is protected internal.
This method is an override.
The ReferenceDataDocumentationElement to write from.
protected internal
)Writes a list item (li
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The ListItemDocumentationElement to write from.
protected internal
)Writes an ordered list (ol
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The OrderedListDocumentationElement to write from.
protected internal
)Writes a paragraph (p
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The ParagraphDocumentationElement to write from.
protected internal
)Writes a parameter reference (parameter name wrapped in code
tags) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The ParameterReferenceDocumentationElement to write from.
protected internal
)Writes a remarks section (section
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The RemarksDocumentationElement to write from.
protected internal
)Writes a summary section (section
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The SummaryDocumentationElement to write from.
protected internal
)Writes a table (table
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The TableDocumentationElement to write from.
protected internal
)Writes a table cell (td
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The TableCellDocumentationElement to write from.
protected internal
)Writes a table header cell (th
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The TableColumnDocumentationElement to write from.
protected internal
)Writes a table row (tr
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The TableRowDocumentationElement to write from.
protected internal
)Safely writes the text content to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The TextDocumentationElement to write from.
protected internal
)Writes an unordered list (ul
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The UnorderedListDocumentationElement to write from.
protected internal
)Writes a value section (section
) to the HtmlWriterDocumentationVisitor.TextWriter.
This method is protected internal.
This method is an override.
The ValueDocumentationElement to write from.
protected
)Writes a closing HTML element.
This method is protected.
The element name, such as p
or h1
.
protected
)Writes an opening HTML element.
This method is protected.
The element name, such as p
or h1
.
A set of attributes to set on the element.
protected
)Writes the provided value
as a safe HTML string.
This method is protected.
The text to write.
If the provied value
contains HTML reserved characters, they are escaped.
protected
)Writes an opening HTML element.
This method is protected.
The element name, such as p
or h1
.
Helper methods for generating HTML pages.
This class is public.
Name | Access | Description |
---|---|---|
MemberReferenceExtensions.GetFullNameReference(MemberReference) | public | Gets the full name reference of the provided memberReference . |
MemberReferenceExtensions.GetSimpleNameReference(MemberReference) | public | Gets the simple name reference of the provided memberReference . |
Gets the full name reference of the provided memberReference
.
This method is public.
This method is static.
The MemberReference for which to get the full name reference.
Returns the full name reference of the provided memberReference
.
Unlike MemberReferenceExtensions.GetSimpleNameReference(MemberReference), this gets the full name reference. This includes the namespace as well. Types do not have alias mapping, a reference to int
will generate System.Int32
.
This method is particularly useful for IDs as it will generate unique outputs for each member of an Assembly.
Gets the simple name reference of the provided memberReference
.
This method is public.
This method is static.
The MemberReference for which to get the simple name reference.
Returns the simple name reference of the provided memberReference
.
A simple name reference consists of just the type name and generic parameters (if any), in case of member it is the declaring type followed by the member name, generic parameters (if any) and parameters (if any).
The purpose is to get a simple name as one would normally write it in code, type aliases are covered as well. Instead of having Int32
as a simple name reference this will retrieve int
instead, just list one would write it in code.
A member reference resolver composed of multiple IMemberReferenceResolvers for generating different URLs based on the library towards which the reference was made.
This class is public.
This class implements the following interfaces: IMemberReferenceResolver, IEnumerable<IMemberReferenceResolver>.
Name | Access | Description |
---|---|---|
MemberReferenceResolver.MemberReferenceResolver(IMemberReferenceResolver) | public | Initializes a new instance of the MemberReferenceResolver class. |
Name | Access | Description |
---|---|---|
MemberReferenceResolver.Add(Func<MemberReference, IMemberReferenceResolver>) | public | Adds the provided memberReferenceResolverFactory for lookups when trying to resolve an URL. |
MemberReferenceResolver.Add(Assembly, IMemberReferenceResolver) | public | Adds the provided memberReferenceResolver as an IMemberReferenceResolver when resolving references to members belonging to the provided assembly . |
MemberReferenceResolver.Create(Func<MemberReference, string>) | public | Creates an IMemberReferenceResolver based on the provided urlResolver callback. |
MemberReferenceResolver.GetUrl(MemberReference) | public | Gets the URL (relative or absolute) for the given memberReference . |
Initializes a new instance of the MemberReferenceResolver class.
This constructor is public.
A default IMemberReferenceResolver to use in case no IMemberReferenceResolver can be found otherwise.
Thrown when defaultMemberReferenceResolver
is null
.
Adds the provided memberReferenceResolverFactory
for lookups when trying to resolve an URL.
This method is public.
A callback that will create a specific IMemberReferenceResolver for a MemberReference.
Thrown when memberReferenceResolverFactory
is null
.
Adds the provided memberReferenceResolver
as an IMemberReferenceResolver when resolving references to members belonging to the provided assembly
.
This method is public.
An assembly for which to resolve MemberReferences using the provided memberReferenceResolver
.
The IMemberReferenceResolver to use when resolving URLs for members of the provided assembly
.
Thrown when assembly
or memberReferenceResolver
are null
.
Creates an IMemberReferenceResolver based on the provided urlResolver
callback.
This method is public.
This method is static.
A callback that resolves the URL for a given MemberReference.
Returns an IMemberReferenceResolver based on the provided urlResolver
callback.
Thrown when urlResolver
is null
.
Gets the URL (relative or absolute) for the given memberReference
.
This method is public.
The MemberReference for which to get the URL.
Returns the URL for the given memberReference
.
Thrown when memberReference
is null
.
Thrown when a URL could not be generated.
A default implementation for resolving .NET Framework member references.
This class is public.
This class implements the following interfaces: IMemberReferenceResolver.
Name | Access | Description |
---|---|---|
MicrosoftDocsMemberReferenceResolver.MicrosoftDocsMemberReferenceResolver() | public | Initializes a new instance of the MicrosoftDocsMemberReferenceResolver class. |
MicrosoftDocsMemberReferenceResolver.MicrosoftDocsMemberReferenceResolver(string) | public | Initializes a new instance of the MicrosoftDocsMemberReferenceResolver class. |
MicrosoftDocsMemberReferenceResolver.MicrosoftDocsMemberReferenceResolver(string, string) | public | Initializes a new instance of the MicrosoftDocsMemberReferenceResolver class. |
Name | Access | Description |
---|---|---|
MicrosoftDocsMemberReferenceResolver.GetUrl(MemberReference) | public | Gets the URL for the provided memberReference . |
Initializes a new instance of the MicrosoftDocsMemberReferenceResolver class.
This constructor is public.
Initializes a new instance of the MicrosoftDocsMemberReferenceResolver class.
This constructor is public.
The view query string parameter when generating MS docs links, this corresponds to the target version.
Initializes a new instance of the MicrosoftDocsMemberReferenceResolver class.
This constructor is public.
Gets the URL for the provided memberReference
.
This method is public.
The MemberReference for which to generate the URL.
Returns the URL for the provided MemberReference. If it points to a member of the documented library then an URL for that page is returned; otherwise an MS doc reference is created.
Contains member reference definitions that can be used to create hyperlinks to referred members defined both in the documented library and dependent assemblies.
Name | Description |
---|---|
ArrayTypeReference | Represents an array type reference. |
AssemblyReference | Represents a documented .NET assembly reference. |
BaseTypeReference | Represents a base class for type reference such as concrete types, generic type definitions, arrays and so on. |
ByRefTypeReference | Represents the type of a value passed by ref. |
ConstantReference | Represents a reference to a constant field. |
ConstructorReference | Represents a constructor reference. |
DynamicTypeReference | Represents a type reference for dynamic types. |
EventReference | Represents an event reference. |
FieldReference | Represents a reference to a field. |
GenericMethodParameterReference | Represents a generic method parameter reference. |
GenericParameterReference | Represents a generic parameter reference. |
GenericTypeParameterReference | Represents a generic type parameter reference. |
MemberReference | Represents a .NET Assembly member reference. |
MemberReferenceFactory | Represents a MemberReference factory. |
MemberReferenceVisitor | Represents a visitor for MemberReference instances. |
MethodReference | Represents a method reference. |
NamespaceReference | Represents a namespace reference. |
PointerTypeReference | Represents a pointer type reference. |
PropertyReference | Represents a property reference. |
TypeReference | Represents a type reference. |
VoidTypeReference | Represents a type reference for void . |
Represents an array type reference.
This class is public.
This class extends BaseTypeReference.
Name | Access | Description |
---|---|---|
ArrayTypeReference.Assembly | public | The declaring assembly. |
ArrayTypeReference.ItemType | public | The array item type. |
ArrayTypeReference.Rank | public | The array rank. |
Name | Access | Description |
---|---|---|
ArrayTypeReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
ArrayTypeReference.Equals(Type) | public | Determines whether the current ArrayTypeReference is equal to the provided type . |
The declaring assembly.
The type of this property is AssemblyReference.
This property has a public getter.
This property is an override.
The array item type.
The type of this property is BaseTypeReference.
This property has a public getter.
The array rank.
The type of this property is int.
This property has a public getter.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is an override.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Determines whether the current ArrayTypeReference is equal to the provided type
.
This method is public.
This method is an override.
Returns true
if the current ArrayTypeReference references the provided type
; false
otherwise.
Represents a documented .NET assembly reference.
This class is public.
This class extends MemberReference.
Name | Access | Description |
---|---|---|
AssemblyReference.Assembly | public | The declaring assembly. |
AssemblyReference.Culture | public | The assembly culture if it is a satelite one; otherwise string.Empty. |
AssemblyReference.Name | public | The assembly name. |
AssemblyReference.PublicKeyToken | public | The assembly public key token if it is signed; otherwise string.Empty. |
AssemblyReference.Version | public | The assembly version. |
Name | Access | Description |
---|---|---|
AssemblyReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
AssemblyReference.Equals(MemberInfo) | public | Determines whether the current MemberReference is equal to the provided memberInfo . |
AssemblyReference.Equals(AssemblyName) | public | Determines whether the current AssemblyReference is equal to the provided assemblyName . |
The declaring assembly.
The type of this property is AssemblyReference.
This property has a public getter.
This property is an override.
The assembly culture if it is a satelite one; otherwise string.Empty.
The type of this property is string.
This property has a public getter.
The assembly name.
The type of this property is string.
This property has a public getter.
The assembly public key token if it is signed; otherwise string.Empty.
The type of this property is string.
This property has a public getter.
The assembly version.
The type of this property is Version.
This property has a public getter.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is an override.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Determines whether the current MemberReference is equal to the provided memberInfo
.
This method is public.
This method is an override.
The MemberInfo to compare to.
Returns true
if the current MemberReference references the provided memberInfo
; false
otherwise.
This method always returns false
because a MemberInfo cannot represent an assembly.
Determines whether the current AssemblyReference is equal to the provided assemblyName
.
This method is public.
This method is an override.
The AssemblyName to compare to.
Returns true
if the current AssemblyReference references the provided assemblyName
; false
otherwise.
Represents a base class for type reference such as concrete types, generic type definitions, arrays and so on.
This class is public.
This class extends MemberReference.
Name | Access | Description |
---|---|---|
BaseTypeReference.Equals(MemberInfo) | public | Determines whether the current BaseTypeReference is equal to the provided memberInfo . |
BaseTypeReference.Equals(Type) | public | Determines whether the current BaseTypeReference is equal to the provided type . |
BaseTypeReference.Equals(AssemblyName) | public | Determines whether the current BaseTypeReference is equal to the provided assemblyName . |
Determines whether the current BaseTypeReference is equal to the provided memberInfo
.
This method is public.
This method is an override.
This method is sealed.
The MemberInfo to compare to.
Returns true
if the current BaseTypeReference references the provided memberInfo
; false
otherwise.
Determines whether the current BaseTypeReference is equal to the provided type
.
This method is public.
This method is abstract.
Returns true
if the current BaseTypeReference references the provided type
; false
otherwise.
Determines whether the current BaseTypeReference is equal to the provided assemblyName
.
This method is public.
This method is an override.
This method is sealed.
The AssemblyName to compare to.
Returns true
if the current BaseTypeReference references the provided assemblyName
; false
otherwise.
This method always returns false
because an AssemblyName cannot represent an assembly member.
Represents the type of a value passed by ref.
This class is public.
This class extends BaseTypeReference.
Name | Access | Description |
---|---|---|
ByRefTypeReference.Assembly | public | The declaring assembly. |
ByRefTypeReference.ReferentType | public | The value type passed by ref. |
Name | Access | Description |
---|---|---|
ByRefTypeReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
ByRefTypeReference.Equals(Type) | public | Determines whether the current ByRefTypeReference is equal to the provided type . |
The declaring assembly.
The type of this property is AssemblyReference.
This property has a public getter.
This property is an override.
The value type passed by ref.
The type of this property is BaseTypeReference.
This property has a public getter.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is an override.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Determines whether the current ByRefTypeReference is equal to the provided type
.
This method is public.
This method is an override.
Returns true
if the current ByRefTypeReference references the provided type
; false
otherwise.
Represents a reference to a constant field.
This class is public.
This class extends FieldReference.
Name | Access | Description |
---|---|---|
ConstantReference.Value | public | The constant value. |
Name | Access | Description |
---|---|---|
ConstantReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
The constant value.
The type of this property is Object.
This property has a public getter.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is an override.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Represents a constructor reference.
This class is public.
This class extends MemberReference.
This class implements the following interfaces: IEquatable<ConstructorInfo>.
Name | Access | Description |
---|---|---|
ConstructorReference.Assembly | public | The declaring assembly. |
ConstructorReference.DeclaringType | public | The constructor declaring type. |
ConstructorReference.ParameterTypes | public | The constructor parameter types. |
Name | Access | Description |
---|---|---|
ConstructorReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
ConstructorReference.Equals(MemberInfo) | public | Determines whether the current ConstructorReference is equal to the provided memberInfo . |
ConstructorReference.Equals(ConstructorInfo) | public | Determines whether the current ConstructorReference is equal to the provided constructorInfo . |
ConstructorReference.Equals(AssemblyName) | public | Determines whether the current ConstructorReference is equal to the provided assemblyName . |
The declaring assembly.
The type of this property is AssemblyReference.
This property has a public getter.
This property is an override.
The constructor declaring type.
The type of this property is TypeReference.
This property has a public getter.
The constructor parameter types.
The type of this property is IReadOnlyList<BaseTypeReference>.
This property has a public getter.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is an override.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Determines whether the current ConstructorReference is equal to the provided memberInfo
.
This method is public.
This method is an override.
The MemberInfo to compare to.
Returns true
if the current ConstructorReference references the provided memberInfo
; false
otherwise.
Determines whether the current ConstructorReference is equal to the provided constructorInfo
.
This method is public.
The ConstructorInfo to compare to.
Returns true
if the current ConstructorReference references the provided constructorInfo
; false
otherwise.
Determines whether the current ConstructorReference is equal to the provided assemblyName
.
This method is public.
This method is an override.
This method is sealed.
The AssemblyName to compare to.
Returns true
if the current BaseTypeReference references the provided assemblyName
; false
otherwise.
This method always returns false
because an ConstructorReference cannot represent a constructor reference.
Represents a type reference for dynamic
types.
This class is public.
This class extends TypeReference.
Name | Access | Description |
---|---|---|
DynamicTypeReference.Equals(Type) | public | Determines whether the current DynamicTypeReference is equal to the provided type . |
Determines whether the current DynamicTypeReference is equal to the provided type
.
This method is public.
This method is an override.
Returns true
if the current DynamicTypeReference references the provided type
; false
otherwise.
Represents an event reference.
This class is public.
This class extends MemberReference.
This class implements the following interfaces: IEquatable<EventInfo>.
Name | Access | Description |
---|---|---|
EventReference.Assembly | public | The declaring assembly. |
EventReference.DeclaringType | public | The event declaring type. |
EventReference.Name | public | The event name. |
Name | Access | Description |
---|---|---|
EventReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
EventReference.Equals(MemberInfo) | public | Determines whether the current EventReference is equal to the provided memberInfo . |
EventReference.Equals(EventInfo) | public | Determines whether the current EventReference is equal to the provided eventInfo . |
EventReference.Equals(AssemblyName) | public | Determines whether the current EventReference is equal to the provided assemblyName . |
The declaring assembly.
The type of this property is AssemblyReference.
This property has a public getter.
This property is an override.
The event declaring type.
The type of this property is TypeReference.
This property has a public getter.
The event name.
The type of this property is string.
This property has a public getter.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is an override.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Determines whether the current EventReference is equal to the provided memberInfo
.
This method is public.
This method is an override.
The MemberInfo to compare to.
Returns true
if the current EventReference references the provided memberInfo
; false
otherwise.
Determines whether the current EventReference is equal to the provided eventInfo
.
This method is public.
Returns true
if the current EventReference references the provided eventInfo
; false
otherwise.
Determines whether the current EventReference is equal to the provided assemblyName
.
This method is public.
This method is an override.
This method is sealed.
The AssemblyName to compare to.
Returns true
if the current EventReference references the provided assemblyName
; false
otherwise.
This method always returns false
because an AssemblyName cannot represent an event reference.
Represents a reference to a field.
This class is public.
This class extends MemberReference.
This class implements the following interfaces: IEquatable<FieldInfo>.
Name | Access | Description |
---|---|---|
FieldReference.Assembly | public | The declaring assembly. |
FieldReference.DeclaringType | public | The field declaring type. |
FieldReference.Name | public | The field name. |
Name | Access | Description |
---|---|---|
FieldReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
FieldReference.Equals(MemberInfo) | public | Determines whether the current FieldReference is equal to the provided memberInfo . |
FieldReference.Equals(FieldInfo) | public | Determines whether the current FieldReference is equal to the provided fieldInfo . |
FieldReference.Equals(AssemblyName) | public | Determines whether the current FieldReference is equal to the provided assemblyName . |
The declaring assembly.
The type of this property is AssemblyReference.
This property has a public getter.
This property is an override.
The field declaring type.
The type of this property is TypeReference.
This property has a public getter.
The field name.
The type of this property is string.
This property has a public getter.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is an override.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Determines whether the current FieldReference is equal to the provided memberInfo
.
This method is public.
This method is an override.
The MemberInfo to compare to.
Returns true
if the current FieldReference references the provided memberInfo
; false
otherwise.
Determines whether the current FieldReference is equal to the provided fieldInfo
.
This method is public.
Returns true
if the current FieldReference references the provided fieldInfo
; false
otherwise.
Determines whether the current FieldReference is equal to the provided assemblyName
.
This method is public.
This method is an override.
This method is sealed.
The AssemblyName to compare to.
Returns true
if the current FieldReference references the provided assemblyName
; false
otherwise.
This method always returns false
because an AssemblyName cannot represent a field reference.
Represents a generic method parameter reference.
This class is public.
This class extends GenericParameterReference.
Name | Access | Description |
---|---|---|
GenericMethodParameterReference.Assembly | public | The declaring assembly. |
GenericMethodParameterReference.DeclaringMethod | public | The generic parameter declaring method. |
Name | Access | Description |
---|---|---|
GenericMethodParameterReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
GenericMethodParameterReference.Equals(Type) | public | Determines whether the current GenericMethodParameterReference is equal to the provided type . |
The declaring assembly.
The type of this property is AssemblyReference.
This property has a public getter.
This property is an override.
The generic parameter declaring method.
The type of this property is MethodReference.
This property has a public getter.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is an override.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Determines whether the current GenericMethodParameterReference is equal to the provided type
.
This method is public.
This method is an override.
Returns true
if the current GenericMethodParameterReference references the provided type
; false
otherwise.
Represents a generic parameter reference.
This class is public.
This class extends BaseTypeReference.
Name | Access | Description |
---|---|---|
GenericParameterReference.Name | public | The generic parameter name. |
GenericParameterReference.Position | public | The generic parameter position; |
The generic parameter name.
The type of this property is string.
This property has a public getter.
The generic parameter position;
The type of this property is int.
This property has a public getter.
Represents a generic type parameter reference.
This class is public.
This class extends GenericParameterReference.
Name | Access | Description |
---|---|---|
GenericTypeParameterReference.Assembly | public | The declaring assembly. |
GenericTypeParameterReference.DeclaringType | public | The generic parameter declaring type. |
Name | Access | Description |
---|---|---|
GenericTypeParameterReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
GenericTypeParameterReference.Equals(Type) | public | Determines whether the current GenericMethodParameterReference is equal to the provided type . |
The declaring assembly.
The type of this property is AssemblyReference.
This property has a public getter.
This property is an override.
The generic parameter declaring type.
The type of this property is TypeReference.
This property has a public getter.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is an override.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Determines whether the current GenericMethodParameterReference is equal to the provided type
.
This method is public.
This method is an override.
Returns true
if the current GenericMethodParameterReference references the provided type
; false
otherwise.
Represents a .NET Assembly member reference.
This class is public.
This class implements the following interfaces: IEquatable<MemberInfo>, IEquatable<Assembly>, IEquatable<AssemblyName>.
Name | Access | Description |
---|---|---|
MemberReference.Assembly | public | The declaring assembly. |
Name | Access | Description |
---|---|---|
MemberReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
MemberReference.Create(MemberInfo) | public | Creates a MemberReference for the provided memberInfo . |
MemberReference.Create(Assembly) | public | Creates an AssemblyReference for the provided assembly . |
MemberReference.Create(AssemblyName) | public | Creates an AssemblyReference for the provided assemblyName . |
MemberReference.Equals(object) | public | Determines whether the current MemberReference is equal to the provided obj . |
MemberReference.Equals(MemberInfo) | public | Determines whether the current MemberReference is equal to the provided memberInfo . |
MemberReference.Equals(Assembly) | public | Determines whether the current MemberReference is equal to the provided assembly . |
MemberReference.Equals(AssemblyName) | public | Determines whether the current MemberReference is equal to the provided assemblyName . |
MemberReference.GetHashCode() | public | Gets the hash code for the current instance. |
The declaring assembly.
The type of this property is AssemblyReference.
This property has a public getter.
This property is abstract.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is abstract.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Creates a MemberReference for the provided memberInfo
.
This method is public.
This method is static.
The MemberInfo from which to create a MemberReference.
Returns a MemberReference for the provided memberInfo
.
Thrown when memberInfo
is null
.
Creates an AssemblyReference for the provided assembly
.
This method is public.
This method is static.
The MemberReference.Assembly from which to create a AssemblyReference.
Returns an AssemblyReference for the provided assembly
.
Thrown when assembly
is null
.
Creates an AssemblyReference for the provided assemblyName
.
This method is public.
This method is static.
The MemberReference.Assembly from which to create a AssemblyReference.
Returns an AssemblyReference for the provided assemblyName
.
Thrown when assemblyName
is null
.
Determines whether the current MemberReference is equal to the provided obj
.
This method is public.
This method is an override.
This method is sealed.
Returns true
if the current MemberReference references the provided obj
; false
otherwise.
If the provided obj
is a MemberInfo, MemberReference.Assembly or AssemblyName then the comparison is done by checking whether the current instance actually maps to the provided actual instance. Otherwise the equality is determined by comparing references.
Determines whether the current MemberReference is equal to the provided memberInfo
.
This method is public.
This method is abstract.
The MemberInfo to compare to.
Returns true
if the current MemberReference references the provided memberInfo
; false
otherwise.
Determines whether the current MemberReference is equal to the provided assembly
.
This method is public.
The MemberReference.Assembly to compare to.
Returns true
if the current MemberReference references the provided assembly
; false
otherwise.
Determines whether the current MemberReference is equal to the provided assemblyName
.
This method is public.
This method is abstract.
The AssemblyName to compare to.
Returns true
if the current MemberReference references the provided assemblyName
; false
otherwise.
Gets the hash code for the current instance.
This method is public.
This method is an override.
This method is sealed.
Returns the hash code for the current instance.
Represents a MemberReference factory.
This class is public.
Name | Access | Description |
---|---|---|
MemberReferenceFactory.MemberReferenceFactory() | public | Initializes a new instance of the MemberReferenceFactory class. |
Name | Access | Description |
---|---|---|
MemberReferenceFactory.Create(MemberInfo) | public | Creates an MemberReference for the provided memberInfo . |
MemberReferenceFactory.Create(Type) | public | Creates a BaseTypeReference for the provided type . |
MemberReferenceFactory.Create(Assembly) | public | Creates an AssemblyReference for the provided assembly . |
MemberReferenceFactory.Create(AssemblyName) | public | Creates an AssemblyReference for the provided assemblyName . |
MemberReferenceFactory.CreateDefaultConstructor(Type) | public | Creates a ConstructorReference for the default constructor of the given type . |
MemberReferenceFactory.CreateDynamic() | public | Creates a DynamicTypeReference that can be used to represent dynamic typed parameters. |
MemberReferenceFactory.CreateNamespace(string, Assembly) | public | Creates a NamespaceReference for the provided namespace name and assembly . |
MemberReferenceFactory.CreateNamespace(string, AssemblyName) | public | Creates a NamespaceReference for the provided namespace name and assemblyName . |
Initializes a new instance of the MemberReferenceFactory class.
This constructor is public.
Creates an MemberReference for the provided memberInfo
.
This method is public.
The MemberInfo for which to create the reference.
Returns an MemberReference for the provided memberInfo
.
Thrown when memberInfo
is null
.
Creates a BaseTypeReference for the provided type
.
This method is public.
Returns an BaseTypeReference for the provided type
.
Thrown when type
is null
.
Creates an AssemblyReference for the provided assembly
.
This method is public.
Returns an AssemblyReference for the provided assembly
.
Thrown when assembly
is null
.
Creates an AssemblyReference for the provided assemblyName
.
This method is public.
The AssemblyName for which to create the reference.
Returns an AssemblyReference for the provided assemblyName
.
Thrown when assemblyName
is null
.
Creates a ConstructorReference for the default constructor of the given type
.
This method is public.
The Type for which to create a ConstructorReference, must be a struct
(value type).
Returns a ConstructorReference for the default constructor of the given type
.
Thrown when type
is null
.
Thrown when type
is not a struct
(value type).
Creates a DynamicTypeReference that can be used to represent dynamic typed parameters.
This method is public.
Returns a DynamicTypeReference.
Creates a NamespaceReference for the provided namespace name
and assembly
.
This method is public.
Returns an Assembly for the provided namespace name
and assembly
.
Thrown when assembly
is null
.
Creates a NamespaceReference for the provided namespace name
and assemblyName
.
This method is public.
The name of the namespace.
The AssemblyName in which the namespace is declared.
Returns an AssemblyName for the provided namespace name
and assemblyName
.
Thrown when assemblyName
is null
.
Represents a visitor for MemberReference instances.
This class is public.
Name | Access | Description |
---|---|---|
MemberReferenceVisitor.MemberReferenceVisitor() | protected |
protected
)This constructor is protected.
protected internal
)Visits the given array
.
This method is protected internal.
This method is abstract.
The ArrayTypeReference to visit.
protected internal
)Visits the given assembly
.
This method is protected internal.
This method is abstract.
The AssemblyReference to visit.
protected internal
)Visits the given byRef
.
This method is protected internal.
This method is abstract.
The ByRefTypeReference to visit.
protected internal
)Visits the given constant
.
This method is protected internal.
This method is abstract.
The ConstantReference to visit.
protected internal
)Visits the given constructor
.
This method is protected internal.
This method is abstract.
The ConstructorReference to visit.
protected internal
)Visits the given event
.
This method is protected internal.
This method is abstract.
The EventReference to visit.
protected internal
)Visits the given field
.
This method is protected internal.
This method is abstract.
The FieldReference to visit.
protected internal
)Visits the given genericMethodParameter
.
This method is protected internal.
This method is abstract.
The GenericMethodParameterReference to visit.
protected internal
)Visits the given genericTypeParameter
.
This method is protected internal.
This method is abstract.
The GenericTypeParameterReference to visit.
protected internal
)Visits the given method
.
This method is protected internal.
This method is abstract.
The MethodReference to visit.
protected internal
)Visits the given namespace
.
This method is protected internal.
This method is abstract.
The NamespaceReference to visit.
protected internal
)Visits the given pointer
.
This method is protected internal.
This method is abstract.
The PointerTypeReference to visit.
protected internal
)Visits the given property
.
This method is protected internal.
This method is abstract.
The PropertyReference to visit.
protected internal
)Visits the given type
.
This method is protected internal.
This method is abstract.
The TypeReference to visit.
Represents a method reference.
This class is public.
This class extends MemberReference.
This class implements the following interfaces: IEquatable<MethodInfo>.
Name | Access | Description |
---|---|---|
MethodReference.Assembly | public | The declaring assembly. |
MethodReference.DeclaringType | public | The method declaring type. |
MethodReference.GenericArguments | public | The method generic arguments. These can be generic parameter declarations or actual types in case of a constructed generic method. |
MethodReference.Name | public | The method name. |
MethodReference.ParameterTypes | public | The method parameter types. |
Name | Access | Description |
---|---|---|
MethodReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
MethodReference.Equals(MemberInfo) | public | Determines whether the current MethodReference is equal to the provided memberInfo . |
MethodReference.Equals(MethodInfo) | public | Determines whether the current MethodReference is equal to the provided methodInfo . |
MethodReference.Equals(AssemblyName) | public | Determines whether the current MethodReference is equal to the provided assemblyName . |
The declaring assembly.
The type of this property is AssemblyReference.
This property has a public getter.
This property is an override.
The method declaring type.
The type of this property is TypeReference.
This property has a public getter.
The method generic arguments. These can be generic parameter declarations or actual types in case of a constructed generic method.
The type of this property is IReadOnlyCollection<BaseTypeReference>.
This property has a public getter.
The method name.
The type of this property is string.
This property has a public getter.
The method parameter types.
The type of this property is IReadOnlyList<BaseTypeReference>.
This property has a public getter.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is an override.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Determines whether the current MethodReference is equal to the provided memberInfo
.
This method is public.
This method is an override.
The MemberInfo to compare to.
Returns true
if the current MethodReference references the provided memberInfo
; false
otherwise.
Determines whether the current MethodReference is equal to the provided methodInfo
.
This method is public.
The MethodInfo to compare to.
Returns true
if the current MethodReference references the provided methodInfo
; false
otherwise.
Determines whether the current MethodReference is equal to the provided assemblyName
.
This method is public.
This method is an override.
This method is sealed.
The AssemblyName to compare to.
Returns true
if the current MethodReference references the provided assemblyName
; false
otherwise.
This method always returns false
because an AssemblyName cannot represent a method reference.
Represents a namespace reference.
This class is public.
This class extends MemberReference.
Name | Access | Description |
---|---|---|
NamespaceReference.Assembly | public | The declaring assembly. |
NamespaceReference.Name | public | The namespace name, or string.Empty for the global namespace. |
Name | Access | Description |
---|---|---|
NamespaceReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
NamespaceReference.Equals(MemberInfo) | public | Determines whether the current NamespaceReference is equal to the provided memberInfo . |
NamespaceReference.Equals(AssemblyName) | public | Determines whether the current NamespaceReference is equal to the provided assemblyName . |
The declaring assembly.
The type of this property is AssemblyReference.
This property has a public getter.
This property is an override.
The namespace name, or string.Empty for the global namespace.
The type of this property is string.
This property has a public getter.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is an override.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Determines whether the current NamespaceReference is equal to the provided memberInfo
.
This method is public.
This method is an override.
The MemberInfo to compare to.
Returns true
if the current NamespaceReference references the provided memberInfo
; false
otherwise.
This method always returns false
because a MemberInfo cannot represent a namespace reference.
Determines whether the current NamespaceReference is equal to the provided assemblyName
.
This method is public.
This method is an override.
This method is sealed.
The AssemblyName to compare to.
Returns true
if the current NamespaceReference references the provided assemblyName
; false
otherwise.
This method always returns false
because an AssemblyName cannot represent a namespace reference.
Represents a pointer type reference.
This class is public.
This class extends BaseTypeReference.
Name | Access | Description |
---|---|---|
PointerTypeReference.Assembly | public | The declaring assembly. |
PointerTypeReference.ReferentType | public | The type of the pointer. |
Name | Access | Description |
---|---|---|
PointerTypeReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
PointerTypeReference.Equals(Type) | public | Determines whether the current PointerTypeReference is equal to the provided type . |
The declaring assembly.
The type of this property is AssemblyReference.
This property has a public getter.
This property is an override.
The type of the pointer.
The type of this property is BaseTypeReference.
This property has a public getter.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is an override.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Determines whether the current PointerTypeReference is equal to the provided type
.
This method is public.
This method is an override.
Returns true
if the current PointerTypeReference references the provided type
; false
otherwise.
Represents a property reference.
This class is public.
This class extends MemberReference.
Name | Access | Description |
---|---|---|
PropertyReference.Assembly | public | The declaring assembly. |
PropertyReference.DeclaringType | public | The property declaring type. |
PropertyReference.Name | public | The property name. |
PropertyReference.ParameterTypes | public | The property parameter types. |
Name | Access | Description |
---|---|---|
PropertyReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
PropertyReference.Equals(MemberInfo) | public | Determines whether the current PropertyReference is equal to the provided memberInfo . |
PropertyReference.Equals(PropertyInfo) | public | Determines whether the current PropertyReference is equal to the provided propertyInfo . |
PropertyReference.Equals(AssemblyName) | public | Determines whether the current PropertyReference is equal to the provided assemblyName . |
The declaring assembly.
The type of this property is AssemblyReference.
This property has a public getter.
This property is an override.
The property declaring type.
The type of this property is TypeReference.
This property has a public getter.
The property name.
The type of this property is string.
This property has a public getter.
The property parameter types.
The type of this property is IReadOnlyList<BaseTypeReference>.
This property has a public getter.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is an override.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Determines whether the current PropertyReference is equal to the provided memberInfo
.
This method is public.
This method is an override.
The MemberInfo to compare to.
Returns true
if the current PropertyReference references the provided memberInfo
; false
otherwise.
Determines whether the current PropertyReference is equal to the provided propertyInfo
.
This method is public.
The PropertyInfo to compare to.
Returns true
if the current PropertyReference references the provided propertyInfo
; false
otherwise.
Determines whether the current PropertyReference is equal to the provided assemblyName
.
This method is public.
This method is an override.
This method is sealed.
The AssemblyName to compare to.
Returns true
if the current PropertyReference references the provided assemblyName
; false
otherwise.
This method always returns false
because an AssemblyName cannot represent a property reference.
Represents a type reference.
This class is public.
This class extends BaseTypeReference.
Name | Access | Description |
---|---|---|
TypeReference.Assembly | public | The declaring assembly. |
TypeReference.DeclaringType | public | The declaring type. |
TypeReference.GenericArguments | public | The type generic arguments. These can be generic parameter declarations or actual types in case of a constructed generic type. |
TypeReference.Name | public | The type name. |
TypeReference.Namespace | public | The type namespace. |
Name | Access | Description |
---|---|---|
TypeReference.Accept(MemberReferenceVisitor) | public | Accepts the provided visitor for selecting a concrete instance method. |
TypeReference.Equals(Type) | public | Determines whether the current TypeReference is equal to the provided type . |
The declaring assembly.
The type of this property is AssemblyReference.
This property has a public getter.
This property is an override.
The declaring type.
The type of this property is TypeReference.
This property has a public getter.
The type generic arguments. These can be generic parameter declarations or actual types in case of a constructed generic type.
The type of this property is IReadOnlyList<BaseTypeReference>.
This property has a public getter.
The type name.
The type of this property is string.
This property has a public getter.
The type namespace.
The type of this property is NamespaceReference.
This property has a public getter.
Accepts the provided visitor
for selecting a concrete instance method.
This method is public.
This method is an override.
The MemberReferenceVisitor interpreting the reference data.
Thrown when visitor
is null
.
Determines whether the current TypeReference is equal to the provided type
.
This method is public.
This method is an override.
Returns true
if the current TypeReference references the provided type
; false
otherwise.
Represents a type reference for void
.
This class is public.
This class extends TypeReference.
Name | Access | Description |
---|---|---|
VoidTypeReference.Equals(Type) | public | Determines whether the current VoidTypeReference is equal to the provided type . |
Determines whether the current VoidTypeReference is equal to the provided type
.
This method is public.
This method is an override.
Returns true
if the current VoidTypeReference references the provided type
; false
otherwise.