Class StringInterpolator
Provides extension methods for PLC's string interpolation.
Inheritance
System.Object
StringInterpolator
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()
Assembly: Vortex.Connector.dll
Syntax
public static class StringInterpolator
Fields
closeToken
Declaration
Field Value
Type |
Description |
System.String |
|
openToken
Declaration
Field Value
Type |
Description |
System.String |
|
Methods
CleanUpTokens(String)
Declaration
static string CleanUpTokens(string interpolated)
Parameters
Type |
Name |
Description |
System.String |
interpolated |
|
Returns
Type |
Description |
System.String |
|
Declaration
static IEnumerable<InterpolatedAncestor> ExtractString(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
FindParent(Int32, IVortexElement)
Declaration
static IVortexElement FindParent(int generation, IVortexElement obj)
Parameters
Returns
GetInterpolatedValue(String, IVortexElement)
Declaration
static string GetInterpolatedValue(string path, IVortexElement obj)
Parameters
Returns
Type |
Description |
System.String |
|
GetObject(String, IVortexElement)
Declaration
static IVortexElement GetObject(string memberName, IVortexElement obj)
Parameters
Returns
GetPropertyInfo(String, IVortexElement)
Declaration
static PropertyInfo GetPropertyInfo(string interpolated, IVortexElement obj)
Parameters
Returns
Type |
Description |
System.Reflection.PropertyInfo |
|
GetPropertyValue(String, IVortexElement)
Declaration
static string GetPropertyValue(string interpolated, IVortexElement obj)
Parameters
Returns
Type |
Description |
System.String |
|
Interpolate(String, Object)
Interpolates original string attached to an vortex object.
Declaration
public static string Interpolate(this string original, object obj)
Parameters
Type |
Name |
Description |
System.String |
original |
Original yet non-interpolated string.
|
System.Object |
obj |
Object on which original string created.
|
Returns
Type |
Description |
System.String |
Interpolated string.
|
Interpolate(String, IVortexElement)
Interpolates original string attached to an vortex object.
Declaration
public static string Interpolate(this string original, IVortexElement obj)
Parameters
Type |
Name |
Description |
System.String |
original |
Original yet non-interpolated string.
|
IVortexElement |
obj |
IVortexElement object on which original string created.
|
Returns
Type |
Description |
System.String |
Interpolated string.
|