private void OnDeserialized(StreamingContext context) { // Try to get canonical name for built-in namespace. // This is used especially for NS_MAIN . if (CanonicalName == null) { CanonicalName = BuiltInNamespaces.GetCanonicalName(Id); } Debug.Assert(CanonicalName != null); }
///<summary> ///Translates the namespace id into the corresponding enum. ///</summary> ///<returns> /// BuiltInNameSpaces ///</returns> public string GetNamespaceString() { return(BuiltInNamespaces.GetCanonicalName(NamespaceID)); }