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
key
string
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
obj
object
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
msgTmpl
stringdata
IDictionaryparam
object[]
Returns
ResolvedMsgTemplate(string, IDictionary)
Resolves the msgTmpl
with data
.
public static string ResolvedMsgTemplate(string msgTmpl, IDictionary data)
Parameters
msgTmpl
stringdata
IDictionary
Returns
ToString()
public override string ToString()
Returns
Operators
explicit operator ExceptionDataKey(string)
Explicit convertion from string.
public static explicit operator ExceptionDataKey(string key)
Parameters
key
string