public static ValidationResult Validate(RuntimePlatform platform, IEnumerable <string> userAssemblies, params object[] options)
 {
     AssemblyValidation.WarmUpRulesCache();
     string[] array = (userAssemblies as string[]) ?? userAssemblies.ToArray <string>();
     if (array.Length != 0)
     {
         foreach (IValidationRule current in AssemblyValidation.ValidationRulesFor(platform, options))
         {
             ValidationResult result = current.Validate(array, options);
             if (!result.Success)
             {
                 return(result);
             }
         }
     }
     return(new ValidationResult
     {
         Success = true
     });
 }
 public static ValidationResult Validate(RuntimePlatform platform, IEnumerable <string> userAssemblies, params object[] options)
 {
     AssemblyValidation.WarmUpRulesCache();
     string[] strArray = userAssemblies as string[] ?? userAssemblies.ToArray <string>();
     if (strArray.Length != 0)
     {
         foreach (IValidationRule validationRule in AssemblyValidation.ValidationRulesFor(platform, options))
         {
             ValidationResult validationResult = validationRule.Validate((IEnumerable <string>)strArray, options);
             if (!validationResult.Success)
             {
                 return(validationResult);
             }
         }
     }
     return(new ValidationResult()
     {
         Success = true
     });
 }