/// <summary> /// Get the NamespaceDefinition that correspond to the specified namespace. /// </summary> /// <param name="name">Name of the namespace</param> /// <returns>A global NamespaceDefinition corresponding to the specified namespace</returns> public static NamespaceDefinition GetDefinition(string name) { if (name == null) throw new ArgumentNullException("name"); // note: "" (empty) is a valid namespace NamespaceDefinition nd; if (!cache.TryGetValue(name, out nd)) { nd = new NamespaceDefinition(name); cache.Add(name, nd); } return nd; }