public Func <ControllerContext, string, TResult> ConvertProcToFunc <TResult>(Proc proc) { return((context, name) => (TResult)proc.Call(context, name)); }
public static Action <object> WrapProc(Proc proc) { return(obj => proc.Call(obj)); }
public static Action <T> WrapProc <T>(Proc proc) { return(obj => proc.Call(obj)); }
public static Func <IRequest, bool> ToRequestPredicate(Proc proc) { return(r => (bool)proc.Call(r)); }