Esempio n. 1
0
 public static bool MayNotBeNull(this ParameterDefinition arg, MethodDefinition method, NullGuardMode mode)
 {
     return(!arg.AllowsNull(method, mode) && !arg.IsOptionalArgumentWithNullDefaultValue() && arg.ParameterType.IsRefType() && !arg.IsOut);
 }
Esempio n. 2
0
 public static bool MayNotBeNull(this ParameterDefinition arg)
 {
     return(!arg.IsOptionalArgumentWithNullDefaultValue() && arg.ParameterType.IsRefType() && !arg.IsOut);
 }