87 references to Reader
System.Configuration (87)
System\Configuration\AppSettingsSection.cs (5)
129if (xmlUtil.Reader.Name != ElementName) { 135lineOffset = xmlUtil.Reader.LineNumber; 139while (!xmlUtil.Reader.EOF) { 140XmlNodeType t = xmlUtil.Reader.NodeType; 145xmlUtil.Reader.Read();
System\Configuration\BaseConfigurationRecord.cs (73)
625ConfigStreamInfo.StreamEncoding = xmlUtil.Reader.Encoding; 636if (xmlUtil.Reader.Depth == 1) { 1815while (xmlUtil.Reader.Depth > 0) { 1816if (xmlUtil.Reader.Name == KEYWORD_LOCATION) { 1818string locationSubPathAttribute = xmlUtil.Reader.GetAttribute(KEYWORD_LOCATION_PATH); 1861int depth = xmlUtil.Reader.Depth; 1864while (xmlUtil.Reader.Depth > depth) { 1865if (xmlUtil.Reader.Name == name) { 1882int lineOffset = xmlUtil.Reader.LineNumber; 1888else if (iKey == 0 && xmlUtil.Reader.Name == KEYWORD_LOCATION) { 1889string locationSubPath = xmlUtil.Reader.GetAttribute(KEYWORD_LOCATION_PATH); 1933if (xmlUtil.Reader.Name != name) { 1938string protectionProviderAttribute = xmlUtil.Reader.GetAttribute(KEYWORD_PROTECTION_PROVIDER); 1940if (xmlUtil.Reader.AttributeCount != 1) { 1949string configBuilderAttribute = xmlUtil.Reader.GetAttribute(KEYWORD_CONFIG_BUILDER); 1954int lineOffset = xmlUtil.Reader.LineNumber; 1958while (!xmlUtil.Reader.EOF) { 1959XmlNodeType t = xmlUtil.Reader.NodeType; 1964xmlUtil.Reader.Read(); 2268if (xmlUtil.Reader.NodeType != XmlNodeType.Element || xmlUtil.Reader.Name != KEYWORD_CONFIGURATION) { 2278while (xmlUtil.Reader.MoveToNextAttribute()) { 2279switch (xmlUtil.Reader.Name) { 2281if (xmlUtil.Reader.Value == KEYWORD_CONFIGURATION_NAMESPACE) { 2288SR.GetString(SR.Config_namespace_invalid, xmlUtil.Reader.Value, KEYWORD_CONFIGURATION_NAMESPACE), 2304if (xmlUtil.Reader.Depth == 1 && xmlUtil.Reader.Name == KEYWORD_CONFIGSECTIONS) { 2330int depth = xmlUtil.Reader.Depth; 2333while (xmlUtil.Reader.Depth == depth + 1) { 2336switch (xmlUtil.Reader.Name) { 2344int lineNumber = xmlUtil.Reader.LineNumber; 2345while (xmlUtil.Reader.MoveToNextAttribute()) { 2346switch (xmlUtil.Reader.Name) { 2348tagName = xmlUtil.Reader.Value; 2361xmlUtil.Reader.MoveToElement(); // if on an attribute move back to the element 2435int lineNumber = xmlUtil.Reader.LineNumber; 2436while (xmlUtil.Reader.MoveToNextAttribute()) { 2437switch (xmlUtil.Reader.Name) { 2439tagName = xmlUtil.Reader.Value; 2455allowExeDefinition = AllowExeDefinitionToEnum(xmlUtil.Reader.Value, xmlUtil); 2465allowDefinition = AllowDefinitionToEnum(xmlUtil.Reader.Value, xmlUtil); 2488OverrideModeSetting.ParseOverrideModeXmlValue(xmlUtil.Reader.Value, xmlUtil)); 2509xmlUtil.Reader.MoveToElement(); // if on an attribute move back to the element 2603while (xmlUtil.Reader.MoveToNextAttribute()) { 2604if (xmlUtil.Reader.Name != KEYWORD_SECTION_NAME) { 2608name = xmlUtil.Reader.Value; 2609lineNumber = xmlUtil.Reader.LineNumber; 2611xmlUtil.Reader.MoveToElement(); 2639if (xmlUtil.Reader.Depth > depth + 1) { 2643while (xmlUtil.Reader.Depth > (depth + 1)) { 2686switch (xmlUtil.Reader.Value) { 2914depth = xmlUtil.Reader.Depth; 2918while (xmlUtil.Reader.Depth == depth + 1) { 2920string tagName = xmlUtil.Reader.Name; 3010if (xmlUtil.Reader.AttributeCount > 0) { 3013while (xmlUtil.Reader.MoveToNextAttribute()) { 3014if (IsReservedAttributeName(xmlUtil.Reader.Name)) { 3019xmlUtil.Reader.MoveToElement(); // if on an attribute move back to the element 3083if (xmlUtil.Reader.AttributeCount >= 1) { 3086string configSourceAttribute = xmlUtil.Reader.GetAttribute(KEYWORD_CONFIGSOURCE); 3095if (xmlUtil.Reader.AttributeCount != 1) { 3103string protectionProviderAttribute = xmlUtil.Reader.GetAttribute(KEYWORD_PROTECTION_PROVIDER); 3112if (xmlUtil.Reader.AttributeCount != 1) { 3120string configBuilderAttribute = xmlUtil.Reader.GetAttribute(KEYWORD_CONFIG_BUILDER); 3134if (!xmlUtil.Reader.IsEmptyElement) { 3135while (xmlUtil.Reader.Read()) { 3136XmlNodeType t = xmlUtil.Reader.NodeType; 3185if (xmlUtil.Reader.NodeType != XmlNodeType.Element) { 3273while (xmlUtil.Reader.MoveToNextAttribute()) { 3274switch (xmlUtil.Reader.Name) { 3276locationSubPath = xmlUtil.Reader.Value; 3303OverrideModeSetting.ParseOverrideModeXmlValue(xmlUtil.Reader.Value, xmlUtil)); 3321xmlUtil.Reader.MoveToElement(); // if on an attribute move back to the element
System\Configuration\MgmtConfigurationRecord.cs (5)
2305if (xmlUtil.Reader.NodeType == XmlNodeType.Element && utilWriter.IsLastLineBlank) { 2324XmlTextReader reader = xmlUtil.Reader; 2503XmlTextReader reader = xmlUtil.Reader; 2729XmlTextReader reader = xmlUtil.Reader; 3173XmlTextReader reader = xmlUtil.Reader;
System\Configuration\XmlUtil.cs (4)
149get { return Reader.LineNumber; } 158int trueLinePosition = Reader.LinePosition - GetPositionOffset(Reader.NodeType); 988(Reader.NodeType == XmlNodeType.Whitespace)) {