public static bool IsParamArray(this ParameterDefinition self)
 {
     return(self.HasCustomAttribute(new string[] { "System.ParamArrayAttribute" }));
 }
예제 #2
0
 private static bool ShouldInjectEmptyStringGuard(ParameterDefinition parameter)
 {
     return(parameter.IsOut == false &&
            parameter.ParameterType.FullName == typeof(string).FullName &&
            parameter.HasCustomAttribute(typeof(AllowEmptyAttribute)) == false);
 }
 public static bool IsParamArray(this ParameterDefinition self)
 {
     stackVariable2    = new String[1];
     stackVariable2[0] = "System.ParamArrayAttribute";
     return(self.HasCustomAttribute(stackVariable2));
 }