Example #1
0
 /// <summary>
 /// Remove an instance from the global table.
 /// </summary>
 /// <param name="path">The path of the XML file whose instance is to be removed.</param>
 public static void RemoveInstance(string path)
 {
     if (path != null)
     {
         lock (((ICollection)instances).SyncRoot)
         {
             if (instances.ContainsKey(path))
             {
                 XmlNodeReaderWriter instance = instances[path];
                 instance.Close();
                 instances.Remove(path);
             }
         }
     }
 }