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);
예제 #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);
예제 #3
0
 public static V ReturnValue <I, V>(this I inValue, GetInputDelegate <I, V> getValue)
 => TeronisTools.ReturnValue(inValue, getValue);
예제 #4
0
 public static V ReturnValue <I, V>(this I inValue, [MaybeNull] out I outInValue, Func <V> getValue)
 => TeronisTools.ReturnValue(inValue, out outInValue, getValue);