System.Xml.XmlNamespaceManager.PushScope C# (CSharp) Method

PushScope() public method

public PushScope ( ) : void
return void
        public virtual void PushScope() {
            scopeId++;
        }

Usage Example

 private static XmlNamespaceManager GetNsMgr(string csprojFile)
 {
     XmlNamespaceManager nsmgr = new XmlNamespaceManager(new XmlTextReader(csprojFile).NameTable);
     nsmgr.AddNamespace(Constants.MSBUILD, "http://schemas.microsoft.com/developer/msbuild/2003");
     nsmgr.PushScope();
     return nsmgr;
 }
All Usage Examples Of System.Xml.XmlNamespaceManager::PushScope