Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- NameObjectCollectionBase.cs
- WebPartUtil.cs
- MimeParameters.cs
- GroupDescription.cs
- ReadOnlyPropertyMetadata.cs
- UserPreferenceChangedEventArgs.cs
- DesignerContextDescriptor.cs
- RuleSettingsCollection.cs
- PreProcessInputEventArgs.cs
- CredentialCache.cs
- EncoderFallback.cs
- WpfKnownType.cs
- RegexGroupCollection.cs
- CollectionContainer.cs
- SplineQuaternionKeyFrame.cs
- Int32Animation.cs
- HuffCodec.cs
- AccessibleObject.cs
- CallSiteOps.cs
- DoubleAnimationClockResource.cs
- NonVisualControlAttribute.cs
- RootBrowserWindow.cs
- DesignerValidatorAdapter.cs
- DataGridDetailsPresenterAutomationPeer.cs
- DrawingCollection.cs
- FreezableCollection.cs
- RoutedEventArgs.cs
- CodeNamespaceImportCollection.cs
- MimeWriter.cs
- DriveInfo.cs
- ISessionStateStore.cs
- OperationExecutionFault.cs
- OdbcDataAdapter.cs
- RelationshipManager.cs
- TextBreakpoint.cs
- AuthorizationSection.cs
- _CookieModule.cs
- PropertyGridCommands.cs
- XPathQilFactory.cs
- RectValueSerializer.cs
- PrePrepareMethodAttribute.cs
- ToolStripSeparator.cs
- StaticTextPointer.cs
- UnsafeNativeMethods.cs
- StringValidator.cs
- InvalidComObjectException.cs
- AutomationPatternInfo.cs
- SHA384Managed.cs
- PropertyGridView.cs
- TemplateBindingExtensionConverter.cs
- ColumnResizeAdorner.cs
- Socket.cs
- XPathMessageFilterElementCollection.cs
- Transform3DGroup.cs
- _SSPISessionCache.cs
- DataTableClearEvent.cs
- KeyboardNavigation.cs
- SelectionPatternIdentifiers.cs
- DataSourceListEditor.cs
- AnonymousIdentificationModule.cs
- CellTreeNodeVisitors.cs
- NamedPipeTransportElement.cs
- SAPIEngineTypes.cs
- SettingsAttributeDictionary.cs
- DescendantQuery.cs
- SqlNodeAnnotation.cs
- ParameterCollection.cs
- Transform3D.cs
- BasicHttpMessageCredentialType.cs
- LowerCaseStringConverter.cs
- DataGridItemAutomationPeer.cs
- EdmItemCollection.cs
- _SingleItemRequestCache.cs
- DoubleUtil.cs
- SafeLibraryHandle.cs
- WmlCommandAdapter.cs
- HostingPreferredMapPath.cs
- GeometryGroup.cs
- LoadItemsEventArgs.cs
- CompositeControlDesigner.cs
- UnsafeNetInfoNativeMethods.cs
- BindingNavigatorDesigner.cs
- ConfigXmlComment.cs
- InkCanvasInnerCanvas.cs
- MultipleCopiesCollection.cs
- UriWriter.cs
- TextRangeAdaptor.cs
- HttpHandler.cs
- PrimitiveDataContract.cs
- CodeTypeDeclarationCollection.cs
- MultipartIdentifier.cs
- XmlDocumentSchema.cs
- WindowsScroll.cs
- EventsTab.cs
- ColumnHeaderConverter.cs
- FixedSOMTableCell.cs
- PlainXmlWriter.cs
- OleDbConnectionFactory.cs
- IResourceProvider.cs
- HtmlInputSubmit.cs