public static TResult Let(this TInput o, Func evaluator, TResult failValue) where TResult : class where TInput : class { if (o == null) return failValue; return evaluator(o); }
This one allows for the calling of functions that return a value.
public static TResult Let(this TInput o, Func evaluator, TResult failValue) where TResult : class where TInput : class { if (o == null) return failValue; return evaluator(o); }
This one allows for the calling of functions that return a value.
0 comments:
Post a Comment