Class SourceAnnotationStringProvider
Default implementation of IGetsSourceAnnotationString which gets source information strings.
Inheritance
System.Object
SourceAnnotationStringProvider
Implements
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 SourceSourceAnnotationStringProvider(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 SourceGetEndTagInfo(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. |
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. |
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. |