Пример #1
0
 public static void IsNotNull <T>(this RequireParameter <T> requireParameter)
 {
     Check.Require(requireParameter.Source != null, () => new ArgumentNullException(requireParameter.Name));
 }
Пример #2
0
 public static void IsNotNullOrEmpty(this RequireParameter <string> requireParameter, string message)
 {
     Check.Require(!string.IsNullOrEmpty(requireParameter.Source), () => new ArgumentNullException(requireParameter.Name, message));
 }