public static bool MayNotBeNull(this ParameterInfo arg) { return(!arg.AllowsNull() && !arg.IsOptional && !arg.ParameterType.IsValueType); }