public static void IsNotNull <T>(this RequireParameter <T> requireParameter) { Check.Require(requireParameter.Source != null, () => new ArgumentNullException(requireParameter.Name)); }
public static void IsNotNullOrEmpty(this RequireParameter <string> requireParameter, string message) { Check.Require(!string.IsNullOrEmpty(requireParameter.Source), () => new ArgumentNullException(requireParameter.Name, message)); }