AdjustLineInfo() private method

private AdjustLineInfo ( char pChars, int length, bool isNormalized, LineInfo &lineInfo ) : void
pChars char
length int
isNormalized bool
lineInfo LineInfo
return void
 internal void AdjustLineInfo(int valueOffset, bool isNormalized, ref LineInfo lineInfo)
 {
     if (valueOffset == 0)
     {
         return;
     }
     if (_valueStartPos != -1)
     {
         XmlTextReaderImpl.AdjustLineInfo(_chars, _valueStartPos, _valueStartPos + valueOffset, isNormalized, ref lineInfo);
     }
     else
     {
         XmlTextReaderImpl.AdjustLineInfo(_value, 0, valueOffset, isNormalized, ref lineInfo);
     }
 }
Beispiel #2
0
 internal void AdjustLineInfo(int valueOffset, bool isNormalized, ref LineInfo lineInfo)
 {
     if (valueOffset == 0)
     {
         return;
     }
     if (valueStartPos != -1)
     {
         XmlTextReaderImpl.AdjustLineInfo(chars, valueStartPos, valueStartPos + valueOffset, isNormalized, ref lineInfo);
     }
     else
     {
         char[] chars = value.ToCharArray(0, valueOffset);
         XmlTextReaderImpl.AdjustLineInfo(chars, 0, chars.Length, isNormalized, ref lineInfo);
     }
 }