Interface ILookUp
A key-value map which resolves keys like "SortOrder" to "asc".
It's usually used to get pre-stored configuration or to get settings from the context.
Read more about this in LookUp System
[PublicApi]
public interface ILookUp
Properties
Description
Additional description to better understand what each LookUp is for.
string Description { get; }
Property Value
Name
Gets the Name of this LookUp, e.g. QueryString or PipelineSettings
string Name { get; }
Property Value
- string
The name which is used to identify this LookUp, like in a ILookUpEngine
Methods
Get(string)
Gets a value by Name/key, will simply return the string or an empty string, in rare cases a null-value.
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)
string Get(string key, string format)