Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Sys / System / Configuration / ConfigXmlElement.cs / 1 / ConfigXmlElement.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Configuration.Internal; using System.IO; using System.Xml; using System.Security.Permissions; internal sealed class ConfigXmlElement : XmlElement, IConfigErrorInfo { int _line; string _filename; public ConfigXmlElement( string filename, int line, string prefix, string localName, string namespaceUri, XmlDocument doc ) : base( prefix, localName, namespaceUri, doc) { _line = line; _filename = filename; } int IConfigErrorInfo.LineNumber { get { return _line; } } string IConfigErrorInfo.Filename { get { return _filename; } } public override XmlNode CloneNode(bool deep) { XmlNode cloneNode = base.CloneNode(deep); ConfigXmlElement clone = cloneNode as ConfigXmlElement; if (clone != null) { clone._line = _line; clone._filename = _filename; } return cloneNode; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Configuration.Internal; using System.IO; using System.Xml; using System.Security.Permissions; internal sealed class ConfigXmlElement : XmlElement, IConfigErrorInfo { int _line; string _filename; public ConfigXmlElement( string filename, int line, string prefix, string localName, string namespaceUri, XmlDocument doc ) : base( prefix, localName, namespaceUri, doc) { _line = line; _filename = filename; } int IConfigErrorInfo.LineNumber { get { return _line; } } string IConfigErrorInfo.Filename { get { return _filename; } } public override XmlNode CloneNode(bool deep) { XmlNode cloneNode = base.CloneNode(deep); ConfigXmlElement clone = cloneNode as ConfigXmlElement; if (clone != null) { clone._line = _line; clone._filename = _filename; } return cloneNode; } } } // 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
- Triangle.cs
- xmlsaver.cs
- WebPartZone.cs
- EventDescriptor.cs
- LocalClientSecuritySettings.cs
- XmlFormatExtensionAttribute.cs
- ChannelHandler.cs
- RuleConditionDialog.cs
- WebPartDisplayModeEventArgs.cs
- WindowsTitleBar.cs
- SymbolType.cs
- DisplayMemberTemplateSelector.cs
- DependencyObjectProvider.cs
- DependencyPropertyHelper.cs
- DocumentStatusResources.cs
- RecognizedAudio.cs
- CustomError.cs
- DBBindings.cs
- DiscreteKeyFrames.cs
- CustomValidator.cs
- AppSettingsReader.cs
- ContextBase.cs
- AsyncOperation.cs
- CustomPopupPlacement.cs
- UnmanagedMemoryStream.cs
- UrlMappingCollection.cs
- QilStrConcatenator.cs
- HttpWrapper.cs
- StringAnimationBase.cs
- FilterQueryOptionExpression.cs
- MenuEventArgs.cs
- XamlPoint3DCollectionSerializer.cs
- Config.cs
- RangeValuePatternIdentifiers.cs
- SqlCacheDependency.cs
- Rotation3DAnimationBase.cs
- XmlSchemaImport.cs
- FixedDSBuilder.cs
- NamedPermissionSet.cs
- BufferedStream.cs
- OdbcConnectionString.cs
- DropShadowEffect.cs
- MatrixTransform3D.cs
- PolicyUnit.cs
- ISAPIApplicationHost.cs
- PnrpPermission.cs
- UnmanagedHandle.cs
- SchemaManager.cs
- XmlSchemaObject.cs
- CngUIPolicy.cs
- FontFaceLayoutInfo.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- CallContext.cs
- SimpleFieldTemplateFactory.cs
- OutputCacheModule.cs
- XhtmlBasicLiteralTextAdapter.cs
- PhonemeConverter.cs
- ToolStripDropDownMenu.cs
- TableAutomationPeer.cs
- UIElementIsland.cs
- AssociationSet.cs
- ControlPropertyNameConverter.cs
- HttpApplicationStateWrapper.cs
- InvalidComObjectException.cs
- Conditional.cs
- HostedTransportConfigurationManager.cs
- FixedTextSelectionProcessor.cs
- ListItemConverter.cs
- DataGridViewDataErrorEventArgs.cs
- MDIClient.cs
- QueryIntervalOp.cs
- DetailsViewRowCollection.cs
- TemplateXamlParser.cs
- SelectionEditingBehavior.cs
- ConfigXmlText.cs
- TextDecorationUnitValidation.cs
- PageCatalogPartDesigner.cs
- ItemCollection.cs
- TextEditorTables.cs
- SqlRowUpdatedEvent.cs
- SubtreeProcessor.cs
- XmlSchemaAttributeGroup.cs
- CounterCreationData.cs
- EntityDesignerDataSourceView.cs
- EventArgs.cs
- GroupBoxAutomationPeer.cs
- HttpProfileBase.cs
- Literal.cs
- CurrencyManager.cs
- ConfigXmlElement.cs
- TypeDescriptionProviderAttribute.cs
- _SslSessionsCache.cs
- BeginCreateSecurityTokenRequest.cs
- ValidationErrorCollection.cs
- Model3D.cs
- RenamedEventArgs.cs
- dsa.cs
- AbandonedMutexException.cs
- RadioButton.cs
- ToolStripPanelCell.cs