Mono.Documentation.MDocToHtmlConverter.ShouldRegenIndexes C# (CSharp) Méthode

ShouldRegenIndexes() static private méthode

static private ShouldRegenIndexes ( MDocToHtmlConverterOptions opts, XmlDocument overview, List sourceDirectories ) : bool
opts MDocToHtmlConverterOptions
overview System.Xml.XmlDocument
sourceDirectories List
Résultat bool
	static bool ShouldRegenIndexes (MDocToHtmlConverterOptions opts, XmlDocument overview, List<string> sourceDirectories)
	{
		string overviewDest   = opts.dest + "/index." + opts.ext;
		if (sourceDirectories.Any (
					d => !DestinationIsNewer (Path.Combine (d, "index.xml"), overviewDest)))
			return true;

		foreach (XmlElement type in overview.SelectNodes("Overview/Types/Namespace/Type")) {
			string _, srcfile, destfile;
			GetTypePaths (opts, type, out _, out srcfile, out destfile);

			if (srcfile == null || destfile == null)
				continue;
			if (DestinationIsNewer (srcfile, destfile))
				return true;
		}

		return false;
	}