public static bool HasInterface <T>(this object obj, [MaybeNull] out T typedObj) =>
 obj.HasInterface <T>()
     ? TeronisTools.ReturnValue((T)obj, out typedObj, true)
     : TeronisTools.ReturnValue(default, out typedObj, false);
Exemplo n.º 2
0
 public static V ReturnValue <I, V>(this I inValue, [MaybeNull] out I outInValue, GetInputDelegate <I, V> getValue)
 => TeronisTools.ReturnValue(inValue, out outInValue, getValue);
Exemplo n.º 3
0
 public static V ReturnValue <I, V>(this I inValue, GetInputDelegate <I, V> getValue)
 => TeronisTools.ReturnValue(inValue, getValue);
Exemplo n.º 4
0
 public static V ReturnValue <I, V>(this I inValue, [MaybeNull] out I outInValue, Func <V> getValue)
 => TeronisTools.ReturnValue(inValue, out outInValue, getValue);