Ejemplo n.º 1
0
 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);
Ejemplo 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);
Ejemplo n.º 3
0
 public static V ReturnValue <I, V>(this I inValue, GetInputDelegate <I, V> getValue)
 => TeronisTools.ReturnValue(inValue, getValue);
Ejemplo 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);