Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 ///<summary>
 ///Translates the namespace id into the corresponding enum.
 ///</summary>
 ///<returns>
 /// BuiltInNameSpaces
 ///</returns>
 public string GetNamespaceString()
 {
     return(BuiltInNamespaces.GetCanonicalName(NamespaceID));
 }