2 writes to _reader
System.Configuration (2)
System\Configuration\XmlUtil.cs (2)
82
_reader
= new XmlTextReader(_stream);
126
_reader
= null;
135 references to _reader
System.Configuration (135)
System\Configuration\XmlUtil.cs (135)
85
_reader
.XmlResolver = null;
96
_reader
.WhitespaceHandling = WhitespaceHandling.None;
99
while (!done &&
_reader
.Read()) {
100
switch (
_reader
.NodeType) {
123
if (
_reader
!= null) {
125
_reader
.Close();
165
get { return
_reader
; }
177
while (
_reader
.Read()) {
178
if (
_reader
.MoveToContent() == XmlNodeType.Element) {
192
_reader
.Skip();
193
_reader
.MoveToContent();
195
while (!
_reader
.EOF &&
_reader
.NodeType != XmlNodeType.Element) {
196
_reader
.Read();
197
_reader
.MoveToContent();
205
while (
_reader
.Read()) {
207
if (
_reader
.NodeType == XmlNodeType.Element) {
221
_reader
.Skip();
223
while (!
_reader
.EOF &&
_reader
.NodeType != XmlNodeType.Element) {
225
_reader
.Read();
236
int currentDepth =
_reader
.Depth;
239
while (
_reader
.Depth >= currentDepth) {
240
_reader
.Skip();
243
while (!
_reader
.EOF &&
_reader
.NodeType != XmlNodeType.EndElement) {
245
_reader
.Read();
253
XmlNodeType nodeType =
_reader
.NodeType;
269
if (
_reader
.MoveToNextAttribute()) {
296
SR.GetString(SR.Config_base_unrecognized_attribute,
_reader
.Name),
304
SR.GetString(SR.Config_missing_required_attribute, attrib,
_reader
.Name),
312
SR.GetString(SR.Config_reserved_attribute,
_reader
.Name),
327
if (!String.IsNullOrEmpty(
_reader
.Value)) {
328
newValue =
_reader
.Value;
334
SR.GetString(SR.Empty_attribute,
_reader
.Name),
349
if (
_reader
.Value == "true") {
352
else if (
_reader
.Value == "false") {
360
SR.GetString(SR.Config_invalid_boolean_attribute,
_reader
.Name),
382
bool isEmptyElement =
_reader
.IsEmptyElement;
383
int startingLine =
_reader
.LineNumber;
388
Debug.Assert(
_reader
.NodeType == XmlNodeType.Element, "_reader.NodeType == XmlNodeType.Element");
394
while (
_reader
.NodeType != XmlNodeType.EndElement) {
397
if (
_reader
.NodeType == XmlNodeType.Element) {
398
_reader
.Skip();
405
if (
_reader
.NodeType == XmlNodeType.Whitespace) {
406
_reader
.Skip();
415
if (
_reader
.LineNumber != startingLine) {
443
if (
_reader
.NodeType == XmlNodeType.EndElement)
446
depth =
_reader
.Depth;
454
if (
_reader
.NodeType == XmlNodeType.Element)
457
if (
_reader
.Depth < depth) {
482
Debug.Assert(
_reader
.NodeType == XmlNodeType.Element, "_reader.NodeType == XmlNodeType.Element");
487
_reader
.Skip();
494
depth =
_reader
.Depth;
501
_reader
.Skip();
503
int lineNumberOfEndElement =
_reader
.LineNumber;
506
while (!
_reader
.EOF) {
507
if (
_reader
.NodeType != XmlNodeType.Whitespace) {
513
if (
_reader
.LineNumber > lineNumberOfEndElement) {
521
_reader
.Read();
525
while (!
_reader
.EOF) {
526
if (
_reader
.NodeType == XmlNodeType.Element)
529
if (
_reader
.Depth < depth) {
536
return !
_reader
.EOF;
543
Debug.Assert(
_reader
.NodeType== XmlNodeType.Element, "_reader.NodeType== XmlNodeType.Element");
545
int depth =
_reader
.Depth;
546
bool isEmptyElement =
_reader
.IsEmptyElement;
552
while (
_reader
.Depth > depth) {
596
readerLineNumber =
_reader
.LineNumber;
597
readerLinePosition =
_reader
.LinePosition;
603
XmlNodeType nodeType =
_reader
.NodeType;
605
utilWriter.Write(
_reader
.Value);
608
close = (
_reader
.IsEmptyElement) ? "/>" : ">";
615
lineNumber =
_reader
.LineNumber;
616
linePosition =
_reader
.LinePosition +
_reader
.Name.Length;
619
utilWriter.Write(
_reader
.Name);
633
while (
_reader
.MoveToNextAttribute()) {
639
int attrLineNumber =
_reader
.LineNumber;
640
int attrLinePosition =
_reader
.LinePosition;
646
int charactersWritten = utilWriter.Write(
_reader
.Name);
648
charactersWritten += utilWriter.AppendAttributeValue(
_reader
);
663
lineNumber =
_reader
.LineNumber;
664
linePosition =
_reader
.LinePosition +
_reader
.Name.Length;
667
utilWriter.Write(
_reader
.Name);
670
utilWriter.AppendComment(
_reader
.Value);
673
utilWriter.AppendEscapeTextString(
_reader
.Value);
683
lineNumber =
_reader
.LineNumber;
684
linePosition =
_reader
.LinePosition + 3;
700
while (
_reader
.MoveToNextAttribute()) {
706
int attrLineNumber =
_reader
.LineNumber;
707
int attrLinePosition =
_reader
.LinePosition;
713
int charactersWritten = utilWriter.Write(
_reader
.Name);
715
charactersWritten += utilWriter.AppendAttributeValue(
_reader
);
723
_reader
.MoveToElement();
726
utilWriter.Write(
_reader
.Value);
741
utilWriter.AppendProcessingInstruction(
_reader
.Name,
_reader
.Value);
744
utilWriter.AppendEntityRef(
_reader
.Name);
747
utilWriter.AppendCData(
_reader
.Value);
763
utilWriter.AppendRequiredWhiteSpace(_lastLineNumber, _lastLinePosition + c,
_reader
.LineNumber,
_reader
.LinePosition);
766
utilWriter.Write(
_reader
.Name);
770
if (
_reader
.HasValue) {
771
dtdValue =
_reader
.Value;
778
lineNumber =
_reader
.LineNumber;
779
linePosition =
_reader
.LinePosition +
_reader
.Name.Length;
782
if (
_reader
.MoveToFirstAttribute()) {
784
utilWriter.AppendRequiredWhiteSpace(lineNumber, linePosition,
_reader
.LineNumber,
_reader
.LinePosition);
787
string attrName =
_reader
.Name;
790
utilWriter.AppendAttributeValue(
_reader
);
791
_reader
.MoveToAttribute(0);
795
_reader
.MoveToAttribute(1);
797
utilWriter.AppendAttributeValue(
_reader
);
798
_reader
.MoveToAttribute(1);
813
bool moreToRead =
_reader
.Read();
814
nodeType =
_reader
.NodeType;
826
int closeLineNumber =
_reader
.LineNumber;
827
int closeLinePosition =
_reader
.LinePosition - startOffset - close.Length;
863
Debug.Assert(
_reader
.NodeType == XmlNodeType.Element,
869
element.Append(
_reader
.Name);
872
while (
_reader
.MoveToNextAttribute()) {
875
element.Append(
_reader
.Name);
878
element.Append(
_reader
.Value);
898
Debug.Assert(
_reader
.NodeType == XmlNodeType.Element, "_reader.NodeType == NodeType.Element");
904
elementName =
_reader
.Name;
907
if (
_reader
.IsEmptyElement) {
949
_reader
.Read();
975
WhitespaceHandling originalHandling =
_reader
.WhitespaceHandling;
976
_reader
.WhitespaceHandling = WhitespaceHandling.All;
985
_reader
.WhitespaceHandling = originalHandling;
991
_reader
.Read();