Class ExceptionDataKey
- Namespace
- Tlabs
- Assembly
- Tlabs.Core.dll
Data key type.
public class ExceptionDataKey
- Inheritance
-
ExceptionDataKey
- Inherited Members
- Extension Methods
Constructors
ExceptionDataKey(string)
Ctor from key.
public ExceptionDataKey(string key)
Parameters
keystring
Fields
MSG_TMPL
Message template key.
public static readonly ExceptionDataKey MSG_TMPL
Field Value
Properties
Key
Key value.
public string Key { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ResolvedMsgParams(string, out IDictionary, params object[])
Resolves the msgTmpl parameters into data using param(s) and return the resulting message.
public static string ResolvedMsgParams(string msgTmpl, out IDictionary data, params object[] param)
Parameters
msgTmplstringdataIDictionaryparamobject[]
Returns
ResolvedMsgTemplate(string, IDictionary)
Resolves the msgTmpl with data.
public static string ResolvedMsgTemplate(string msgTmpl, IDictionary data)
Parameters
msgTmplstringdataIDictionary
Returns
ToString()
public override string ToString()
Returns
Operators
explicit operator ExceptionDataKey(string)
Explicit convertion from string.
public static explicit operator ExceptionDataKey(string key)
Parameters
keystring