Show / Hide Table of Contents

Class SourceAnnotationStringProvider

Default implementation of IGetsSourceAnnotationString which gets source information strings.

Inheritance
System.Object
SourceAnnotationStringProvider
Implements
IGetsSourceAnnotationString
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.SourceAnnotation
Assembly: ZptSharp.dll
Syntax
public class SourceAnnotationStringProvider : IGetsSourceAnnotationString

Constructors

| Improve this Doc View Source

SourceAnnotationStringProvider(RenderingConfig, ILogger<SourceAnnotationStringProvider>)

Initializes a new instance of the SourceAnnotationStringProvider class.

Declaration
public SourceAnnotationStringProvider(RenderingConfig config, ILogger<SourceAnnotationStringProvider> logger)
Parameters
Type Name Description
RenderingConfig config

Config.

Microsoft.Extensions.Logging.ILogger<SourceAnnotationStringProvider> logger

Logger

Methods

| Improve this Doc View Source

GetEndTagInfo(NodeSourceInfo)

Gets a string which represents information about the source of an node end-tag.

Declaration
public string GetEndTagInfo(NodeSourceInfo sourceInfo)
Parameters
Type Name Description
NodeSourceInfo sourceInfo

The source info from which to get a string.

Returns
Type Description
System.String

The end-tag info.

| Improve this Doc View Source

GetSourceInfo(IDocumentSourceInfo)

Gets a string which represents information about a document's source information.

Declaration
public string GetSourceInfo(IDocumentSourceInfo sourceInfo)
Parameters
Type Name Description
IDocumentSourceInfo sourceInfo

The source info from which to get a string.

Returns
Type Description
System.String

The source info.

| Improve this Doc View Source

GetStartTagInfo(NodeSourceInfo)

Gets a string which represents information about the source of an node start-tag.

Declaration
public string GetStartTagInfo(NodeSourceInfo sourceInfo)
Parameters
Type Name Description
NodeSourceInfo sourceInfo

The source info from which to get a string.

Returns
Type Description
System.String

The start-tag info.

Implements

IGetsSourceAnnotationString
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX