Mono.Documentation.MDocToHtmlConverter.TypeInVersions C# (CSharp) Method

TypeInVersions() static private method

static private TypeInVersions ( string sourceDirectory, string ns, XmlNode type ) : bool
sourceDirectory string
ns string
type System.Xml.XmlNode
return bool
	static bool TypeInVersions (string sourceDirectory, string ns, XmlNode type)
	{
		if (opts.versions.Count == 0)
			return true;
		var file = Path.Combine (Path.Combine (sourceDirectory, ns), type.Attributes ["Name"].Value + ".xml");
		if (!File.Exists (file))
			return false;
		XPathDocument doc;
		using (var s = File.OpenText (file))
			doc = new XPathDocument (s);
		return MemberInVersions (doc.CreateNavigator ().SelectSingleNode ("/Type"));
	}