Craig's Utility Library  4.0 Beta
Utilities.DataTypes.StringTemplate Class Reference

Acts as a template for a string More...

Inheritance diagram for Utilities.DataTypes.StringTemplate:

Public Member Functions

 StringTemplate (string Template, string KeyStart="{", string KeyEnd="}")
 Constructor More...
 
override void GetObjectData (SerializationInfo info, StreamingContext context)
 Implements the ISerializable interface and returns the data needed to serialize the dictionary instance More...
 
override string ToString ()
 Applies the key/values to the template and returns the resulting string More...
 

Static Public Member Functions

static implicit operator string (StringTemplate Value)
 Converts the object to a string More...
 

Protected Member Functions

 StringTemplate (SerializationInfo Info, StreamingContext Context)
 Constructor More...
 

Properties

string KeyEnd [get, protected set]
 Ending signifier of a key More...
 
string KeyStart [get, protected set]
 Beginning signifier of a key More...
 
string Template [get, protected set]
 Template More...
 

Detailed Description

Acts as a template for a string

Definition at line 34 of file StringTemplate.cs.

Constructor & Destructor Documentation

Utilities.DataTypes.StringTemplate.StringTemplate ( string  Template,
string  KeyStart = "{",
string  KeyEnd = "}" 
)

Constructor

Parameters
TemplateTemplate
KeyEndEnding signifier of a key
KeyStartStarting signifier of a key

Definition at line 42 of file StringTemplate.cs.

Utilities.DataTypes.StringTemplate.StringTemplate ( SerializationInfo  Info,
StreamingContext  Context 
)
protected

Constructor

Parameters
InfoSerialization info
ContextStreaming context

Definition at line 54 of file StringTemplate.cs.

Member Function Documentation

override void Utilities.DataTypes.StringTemplate.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)

Implements the ISerializable interface and returns the data needed to serialize the dictionary instance

Parameters
infoSerialization info
contextStreaming context

Definition at line 92 of file StringTemplate.cs.

static implicit Utilities.DataTypes.StringTemplate.operator string ( StringTemplate  Value)
static

Converts the object to a string

Parameters
ValueValue to convert
Returns
The value as a string

Definition at line 79 of file StringTemplate.cs.

override string Utilities.DataTypes.StringTemplate.ToString ( )

Applies the key/values to the template and returns the resulting string

Returns
The resulting string

Definition at line 101 of file StringTemplate.cs.

Property Documentation

string Utilities.DataTypes.StringTemplate.KeyEnd
getprotected set

Ending signifier of a key

Definition at line 62 of file StringTemplate.cs.

string Utilities.DataTypes.StringTemplate.KeyStart
getprotected set

Beginning signifier of a key

Definition at line 67 of file StringTemplate.cs.

string Utilities.DataTypes.StringTemplate.Template
getprotected set

Template

Definition at line 72 of file StringTemplate.cs.


The documentation for this class was generated from the following file: