Class XmlDocumentationElement
- Namespace
- ICSharpCode.Decompiler.Documentation
- Assembly
- ICSharpCode.Decompiler.dll
Represents an element in the XML documentation. Any occurrences of "<inheritdoc/>" are replaced with the inherited documentation.
public class XmlDocumentationElement
- Inheritance
-
XmlDocumentationElement
- Inherited Members
Constructors
XmlDocumentationElement(string, IEntity?)
Creates a new documentation element.
public XmlDocumentationElement(string text, IEntity? declaringEntity)
Parameters
XmlDocumentationElement(XElement, IEntity?, Func<string, IEntity?>?)
Creates a new documentation element.
public XmlDocumentationElement(XElement element, IEntity? declaringEntity, Func<string, IEntity?>? crefResolver)
Parameters
Properties
Children
Gets the child elements.
public IList<XmlDocumentationElement> Children { get; }
Property Value
DeclaringEntity
Gets the entity on which this documentation was originally declared. May return null.
public IEntity? DeclaringEntity { get; }
Property Value
IsTextNode
Gets whether this is a pure text node.
public bool IsTextNode { get; }
Property Value
Name
Gets the element name.
public string Name { get; }
Property Value
ReferencedEntity
Gets the entity referenced by the 'cref' attribute. May return null.
public IEntity? ReferencedEntity { get; }
Property Value
TextContent
Gets the text content.
public string TextContent { get; }
Property Value
Methods
GetAttribute(string?)
Gets the attribute value.
public string? GetAttribute(string? name)
Parameters
name
string
Returns
ToString()
public override string ToString()