System.Xml.XmlBufferReader.GetList C# (CSharp) Méthode

GetList() public méthode

public GetList ( int offset, int count ) : object[]
offset int
count int
Résultat object[]
        public object[] GetList(int offset, int count)
        {
            int bufferOffset = this.Offset;
            this.Offset = offset;
            try
            {
                object[] objects = new object[count];
                for (int i = 0; i < count; i++)
                {
                    XmlBinaryNodeType nodeType = GetNodeType();
                    SkipNodeType();
                    DiagnosticUtility.DebugAssert(nodeType != XmlBinaryNodeType.StartListText, "");
                    ReadValue(nodeType, _listValue);
                    objects[i] = _listValue.ToObject();
                }
                return objects;
            }
            finally
            {
                this.Offset = bufferOffset;
            }
        }

Usage Example

Exemple #1
0
 public object[] ToList()
 {
     return(_bufferReader.GetList(_offset, _length));
 }
All Usage Examples Of System.Xml.XmlBufferReader::GetList