public static void Selector(object selector) { if (selector == null) throw new ArgumentNullException ("selector"); }
public static TResult With <TSource, TResult> (this TSource self, Func <TSource, TResult> selector) { // Permit self to be null Check.Selector(selector); return(selector(self)); }