Table of Contents

Class LookUpInDictionary

Namespace
ToSic.Eav.LookUp
Assembly
ToSic.Eav.Core.dll

Look Up values from a .net dictionary. Case-Insensitive.
Read more about this in LookUp System

[PublicApi]
public class LookUpInDictionary : LookUpBase, ILookUp
Inheritance
LookUpInDictionary
Implements
Inherited Members

Constructors

LookUpInDictionary(string, IDictionary<string, string>, string)

Look Up values from a .net dictionary. Case-Insensitive.
Read more about this in LookUp System

public LookUpInDictionary(string name, IDictionary<string, string> valueList = null, string description = null)

Parameters

name string

Name to use

valueList IDictionary<string, string>

value list (dictionary) to reference - will convert to invariant; or create blank

description string

Properties

Properties

List with static properties and Test-Values

public IDictionary<string, string> Properties { get; }

Property Value

IDictionary<string, string>

Methods

Get(string, string)

Gets a value by Name/key and tries to format it in a special way (like for dates)

public override string Get(string key, string format)

Parameters

key string

Name of the Property

format string

Format String

Returns

string