1using System.Reflection;
17 public static KeyValuePair<string, object?>[]
GetClassAndMethod(
this object Obj, MethodBase? MethodInfo,
string? Method =
null)
21 new KeyValuePair<string, object?>(
"Class", Obj.GetType().Name),
22 new KeyValuePair<string, object?>(
"Method", Method ?? MethodInfo?.Name ??
"UNKNOWN")
Generic extension class for objects of type object.
static KeyValuePair< string, object?>[] GetClassAndMethod(this object Obj, MethodBase? MethodInfo, string? Method=null)
Returns the current class and method as a KeyValuePair<TKey,TValue>. For debugging purposes.