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
- BrowserInteropHelper.cs
- ClientRolePrincipal.cs
- HttpListenerResponse.cs
- TableCell.cs
- BinaryNode.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- TrackingMemoryStream.cs
- OleDbWrapper.cs
- MdiWindowListItemConverter.cs
- HtmlElementEventArgs.cs
- StyleSheetRefUrlEditor.cs
- EmptyStringExpandableObjectConverter.cs
- PointAnimation.cs
- Simplifier.cs
- NumericPagerField.cs
- StructuralType.cs
- ConnectorDragDropGlyph.cs
- ToolStripArrowRenderEventArgs.cs
- NativeMethods.cs
- DescendantQuery.cs
- CollectionsUtil.cs
- mactripleDES.cs
- XmlNodeChangedEventArgs.cs
- MenuItemBinding.cs
- SubclassTypeValidator.cs
- DataSourceCache.cs
- EntryWrittenEventArgs.cs
- PeerCustomResolverSettings.cs
- IDictionary.cs
- NavigationFailedEventArgs.cs
- UnsafeNativeMethods.cs
- ButtonBase.cs
- DataListItem.cs
- CharacterMetrics.cs
- LayoutDump.cs
- CommandExpr.cs
- DSASignatureDeformatter.cs
- HtmlProps.cs
- SimpleRecyclingCache.cs
- UnsafeNativeMethods.cs
- SafeFileMappingHandle.cs
- BitmapMetadataEnumerator.cs
- BulletedListEventArgs.cs
- FormCollection.cs
- DataGrid.cs
- OutgoingWebResponseContext.cs
- PasswordRecovery.cs
- TPLETWProvider.cs
- XamlFilter.cs
- PrintDialog.cs
- PermissionToken.cs
- QilTypeChecker.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- TypeContext.cs
- CompilationRelaxations.cs
- XmlSchemaAttributeGroupRef.cs
- SqlLiftIndependentRowExpressions.cs
- ConfigXmlDocument.cs
- RecognizerInfo.cs
- GenericWebPart.cs
- UIElementIsland.cs
- ToolStripLabel.cs
- IndependentlyAnimatedPropertyMetadata.cs
- HeaderCollection.cs
- CalendarModeChangedEventArgs.cs
- Decorator.cs
- WebUtil.cs
- MetadataSerializer.cs
- SystemUnicastIPAddressInformation.cs
- JsonDeserializer.cs
- DataSetUtil.cs
- HTTPRemotingHandler.cs
- NativeMethods.cs
- RadioButtonRenderer.cs
- HttpCacheParams.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ExecutionContext.cs
- Tile.cs
- AdjustableArrowCap.cs
- ProviderConnectionPoint.cs
- Int32RectValueSerializer.cs
- MediaCommands.cs
- IFlowDocumentViewer.cs
- TransformationRules.cs
- XPathNodeHelper.cs
- XmlExtensionFunction.cs
- WindowsAuthenticationEventArgs.cs
- TableColumnCollection.cs
- Attachment.cs
- HandlerFactoryWrapper.cs
- NullToBooleanConverter.cs
- LocalizationParserHooks.cs
- DocumentGridPage.cs
- DbSourceCommand.cs
- SQLDateTimeStorage.cs
- TypeUtils.cs
- XslException.cs
- SecurityException.cs
- BaseDataBoundControlDesigner.cs
- Baml2006ReaderSettings.cs