Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ConfigXmlReader.cs / 1305376 / ConfigXmlReader.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Configuration.Internal; using System.Collections; using System.Collections.Specialized; using System.Collections.Generic; using System.Configuration; using System.Globalization; using System.IO; using System.Runtime.InteropServices; using System.Security; using System.Security.Permissions; using System.Text; using System.Xml; using System.Net; internal sealed class ConfigXmlReader : XmlTextReader, IConfigErrorInfo { string _rawXml; int _lineOffset; string _filename; // Used in a decrypted configuration section to locate // the line where the ecnrypted section begins. bool _lineNumberIsConstant; internal ConfigXmlReader(string rawXml, string filename, int lineOffset) : this(rawXml, filename, lineOffset, false) { } internal ConfigXmlReader(string rawXml, string filename, int lineOffset, bool lineNumberIsConstant) : base(new StringReader(rawXml)) { _rawXml = rawXml; _filename = filename; _lineOffset = lineOffset; _lineNumberIsConstant = lineNumberIsConstant; Debug.Assert(!_lineNumberIsConstant || _lineOffset > 0, "!_lineNumberIsConstant || _lineOffset > 0"); } internal ConfigXmlReader Clone() { return new ConfigXmlReader(_rawXml, _filename, _lineOffset, _lineNumberIsConstant); } int IConfigErrorInfo.LineNumber { get { if (_lineNumberIsConstant) { return _lineOffset; } else if (_lineOffset > 0) { return base.LineNumber + (_lineOffset - 1); } else { return base.LineNumber; } } } string IConfigErrorInfo.Filename { get { return _filename; } } internal string RawXml { get { return _rawXml; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Wildcard.cs
- BindingContext.cs
- PeerCustomResolverBindingElement.cs
- ZipIOModeEnforcingStream.cs
- ConvertEvent.cs
- SessionStateModule.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- DataList.cs
- Viewport3DAutomationPeer.cs
- ProfileParameter.cs
- MarshalDirectiveException.cs
- XmlEncoding.cs
- WebControlsSection.cs
- ProcessModelSection.cs
- WebPartCloseVerb.cs
- ColorIndependentAnimationStorage.cs
- ErrorFormatterPage.cs
- WSHttpBindingCollectionElement.cs
- ShaderRenderModeValidation.cs
- FtpRequestCacheValidator.cs
- SafeEventLogWriteHandle.cs
- TextParagraphView.cs
- AppearanceEditorPart.cs
- ObjectParameterCollection.cs
- DataError.cs
- EntityObject.cs
- IsolatedStorage.cs
- DynamicRendererThreadManager.cs
- SqlBuilder.cs
- WmiInstallComponent.cs
- EntityDesignerDataSourceView.cs
- CaretElement.cs
- CodeIterationStatement.cs
- ColumnResizeUndoUnit.cs
- BypassElementCollection.cs
- RouteCollection.cs
- XmlDataProvider.cs
- ProxyWebPartConnectionCollection.cs
- DataGridViewRowCancelEventArgs.cs
- GeneratedContractType.cs
- SerializationInfo.cs
- ISO2022Encoding.cs
- BasePropertyDescriptor.cs
- HandlerBase.cs
- InstallerTypeAttribute.cs
- CancellationHandler.cs
- XmlElementList.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- IxmlLineInfo.cs
- Property.cs
- MouseActionConverter.cs
- EntityContainerRelationshipSet.cs
- SQLSingle.cs
- XmlSerializerNamespaces.cs
- UnknownBitmapEncoder.cs
- SQLMoney.cs
- IsolatedStorageFilePermission.cs
- KnowledgeBase.cs
- StoreItemCollection.cs
- NonClientArea.cs
- StrokeNodeOperations2.cs
- ListSourceHelper.cs
- OpCodes.cs
- DropDownList.cs
- ProcessHostMapPath.cs
- DataGridPagerStyle.cs
- BackStopAuthenticationModule.cs
- HttpClientChannel.cs
- XmlSchemaObjectCollection.cs
- DataGridViewTextBoxColumn.cs
- RectangleF.cs
- SqlCommand.cs
- AttachmentCollection.cs
- CompilationLock.cs
- DocumentPaginator.cs
- PageSettings.cs
- NativeMethodsCLR.cs
- DataService.cs
- TrustManager.cs
- LineGeometry.cs
- ByteStreamGeometryContext.cs
- BindingWorker.cs
- AxisAngleRotation3D.cs
- configsystem.cs
- ModuleBuilderData.cs
- ResourcePermissionBase.cs
- GenericNameHandler.cs
- SemaphoreSecurity.cs
- MessageEncoderFactory.cs
- Grant.cs
- Tuple.cs
- TableRowsCollectionEditor.cs
- DispatcherTimer.cs
- AssemblyBuilderData.cs
- StateBag.cs
- CategoryNameCollection.cs
- NamespaceList.cs
- SelectionProviderWrapper.cs
- FontDialog.cs
- FormsAuthenticationCredentials.cs