Class TemplateStringContentSource
Represents a string template source that comes from a string
Inheritance
System.Object
TemplateStringContentSource
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.dll
Syntax
public class TemplateStringContentSource : ITemplateSource<string>, ITemplateSource
Constructors
TemplateStringContentSource(String)
Declaration
public TemplateStringContentSource(string content)
Parameters
Type |
Name |
Description |
System.String |
content |
|
Fields
Content
Declaration
public readonly string Content
Field Value
Type |
Description |
System.String |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
GetName(Int32)
Gets printable source name
Declaration
public string GetName(int maxLength)
Parameters
Type |
Name |
Description |
System.Int32 |
maxLength |
|
Returns
Type |
Description |
System.String |
|
GetRelativeContent(String)
Declaration
public string GetRelativeContent(string relativeName)
Parameters
Type |
Name |
Description |
System.String |
relativeName |
|
Returns
Type |
Description |
System.String |
|
GetSourceContent()
Declaration
public string GetSourceContent()
Returns
Type |
Description |
System.String |
|
InferClassName()
Returns null as class name can not be inferred from string
Declaration
public string InferClassName()
Returns
Type |
Description |
System.String |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Explicit Interface Implementations
ITemplateSource.GetRelativeContent(String)
Declaration
object ITemplateSource.GetRelativeContent(string relativeName)
Parameters
Type |
Name |
Description |
System.String |
relativeName |
|
Returns
Type |
Description |
System.Object |
|
ITemplateSource.GetSourceContent()
Declaration
object ITemplateSource.GetSourceContent()
Returns
Type |
Description |
System.Object |
|
Implements
Extension Methods