| File: FrameworkFork\System.ServiceModel\System\IdentityModel\XmlBuffer.cs | Web Access |
| Project: src\src\dotnet-svcutil\lib\src\dotnet-svcutil-lib.csproj (dotnet-svcutil-lib) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Runtime; using System.ServiceModel; using Microsoft.Xml; namespace System.IdentityModel { internal class XmlBuffer { private enum BufferState { Created, Writing, Reading, } private struct Section { private int _offset; private int _size; private XmlDictionaryReaderQuotas _quotas; public Section(int offset, int size, XmlDictionaryReaderQuotas quotas) { _offset = offset; _size = size; _quotas = quotas; } public int Offset { get { return _offset; } } public int Size { get { return _size; } } public XmlDictionaryReaderQuotas Quotas { get { return _quotas; } } } private Exception CreateInvalidStateException() { return new InvalidOperationException(SRServiceModel.XmlBufferInInvalidState); } } }