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
- PathSegmentCollection.cs
- LogWriteRestartAreaAsyncResult.cs
- CapabilitiesRule.cs
- SQLSingleStorage.cs
- ProgressPage.cs
- Int32Collection.cs
- LabelTarget.cs
- SendDesigner.xaml.cs
- DbModificationCommandTree.cs
- SHA384.cs
- CapabilitiesSection.cs
- COAUTHINFO.cs
- TimelineGroup.cs
- DelegateInArgument.cs
- ToolStripContainerActionList.cs
- TextElement.cs
- XNameTypeConverter.cs
- ValueSerializer.cs
- TextSelection.cs
- httpapplicationstate.cs
- IFlowDocumentViewer.cs
- ImageAutomationPeer.cs
- BufferModesCollection.cs
- DataViewManagerListItemTypeDescriptor.cs
- DataSourceDescriptorCollection.cs
- HatchBrush.cs
- OutputCacheSettings.cs
- XmlNodeReader.cs
- QueuePathDialog.cs
- LinkConverter.cs
- ClientApiGenerator.cs
- StaticExtensionConverter.cs
- WebEventCodes.cs
- HttpModuleAction.cs
- SynchronizedInputPattern.cs
- XmlTypeMapping.cs
- ClientBuildManagerCallback.cs
- ChannelSinkStacks.cs
- Thread.cs
- CroppedBitmap.cs
- TextEditorTables.cs
- NonParentingControl.cs
- dataobject.cs
- Cursors.cs
- FactorySettingsElement.cs
- SystemFonts.cs
- XPathAxisIterator.cs
- Triangle.cs
- DoubleCollectionConverter.cs
- Query.cs
- WebPartRestoreVerb.cs
- DurableTimerExtension.cs
- HttpClientCertificate.cs
- DataGridColumnEventArgs.cs
- QuaternionKeyFrameCollection.cs
- MissingMethodException.cs
- Helper.cs
- MouseGestureConverter.cs
- ByteAnimationUsingKeyFrames.cs
- ProfileSection.cs
- initElementDictionary.cs
- GradientStopCollection.cs
- EntityPropertyMappingAttribute.cs
- Container.cs
- XPathEmptyIterator.cs
- ObjRef.cs
- WinHttpWebProxyFinder.cs
- HtmlString.cs
- DataRowIndexBuffer.cs
- HttpServerVarsCollection.cs
- SymmetricAlgorithm.cs
- ContainerControl.cs
- LongValidator.cs
- PartitionedStreamMerger.cs
- TrustSection.cs
- DropShadowEffect.cs
- HttpUnhandledOperationInvoker.cs
- GridItemPattern.cs
- WorkItem.cs
- RemoteHelper.cs
- Odbc32.cs
- PropertyGrid.cs
- TypeLoadException.cs
- DataGridViewRowsRemovedEventArgs.cs
- DependencyObjectPropertyDescriptor.cs
- DocumentSequenceHighlightLayer.cs
- DataGridViewButtonCell.cs
- ComponentCodeDomSerializer.cs
- SingleTagSectionHandler.cs
- smtpconnection.cs
- TextTreeUndoUnit.cs
- TemplateXamlTreeBuilder.cs
- SystemFonts.cs
- LinkedResourceCollection.cs
- CompleteWizardStep.cs
- FontStyle.cs
- DrawTreeNodeEventArgs.cs
- CustomLineCap.cs
- DataBoundControl.cs
- StringResourceManager.cs