System.Xml.XmlNodeReaderNavigator.GetDeclarationAttr C# (CSharp) Method

GetDeclarationAttr() public method

public GetDeclarationAttr ( XmlDeclaration decl, String name ) : String
decl XmlDeclaration
name String
return String
            public String GetDeclarationAttr( XmlDeclaration decl, String name ) {
                //PreCondition: curNode is pointing at Declaration node or one of its virtual attributes
                if ( name == strVersion )
                    return decl.Version;
                if ( name == strEncoding )
                    return decl.Encoding;
                if ( name == strStandalone )
                    return decl.Standalone;
                return null;
            }

Same methods

XmlNodeReaderNavigator::GetDeclarationAttr ( int i ) : String