Class LookUpBase
Base Class to create your own LookUp Class - used by all Look-Ups.
Read more about this in LookUp System
[PublicApi]
public abstract class LookUpBase : ILookUp
- Inheritance
-
LookUpBase
- Implements
- Derived
Constructors
LookUpBase(string, string)
Base Class to create your own LookUp Class - used by all Look-Ups.
Read more about this in LookUp System
protected LookUpBase(string name, string description = "")
Parameters
Properties
Description
Additional description to better understand what each LookUp is for.
public virtual string Description { get; }
Property Value
Name
Gets the Name of this LookUp, e.g. QueryString or PipelineSettings
public string Name { get; }
Property Value
- string
The name which is used to identify this LookUp, like in a ILookUpEngine
Methods
Format(bool)
public static string Format(bool value)
Parameters
value
bool
Returns
Format(DateTime)
public static string Format(DateTime value)
Parameters
value
DateTime
Returns
FormatValue(object, string, string[])
Take a specific result object (usually from an IEntity property) and format as needed.
protected string FormatValue(object valueObject, string format, string[] dimensions)
Parameters
Returns
Get(string)
Gets a value by Name/key, will simply return the string or an empty string, in rare cases a null-value.
public virtual string Get(string key)
Parameters
key
string
Returns
- string
The resolved value, or an empty string if not found. Note that it could also resolve to an empty string if found - use Has to check for that case.
Get(string, string)
Gets a value by Name/key and tries to format it in a special way (like for dates)
public abstract string Get(string key, string format)
Parameters
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.