ArchiMetrics.Analysis.CodeMetricsCalculator.IsGeneratedCodeFile C# (CSharp) Метод

IsGeneratedCodeFile() приватный статический Метод

private static IsGeneratedCodeFile ( Microsoft.CodeAnalysis.Document doc, IEnumerable patterns ) : bool
doc Microsoft.CodeAnalysis.Document
patterns IEnumerable
Результат bool
		private static bool IsGeneratedCodeFile(Document doc, IEnumerable<Regex> patterns)
		{
			var path = doc.FilePath;
			return !string.IsNullOrWhiteSpace(path) && patterns.Any(x => x.IsMatch(path));
		}