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
- CustomTokenProvider.cs
- DesignerActionListCollection.cs
- PtsContext.cs
- ElapsedEventArgs.cs
- UnsafeNativeMethods.cs
- BaseParagraph.cs
- SecurityState.cs
- HWStack.cs
- SQLInt64Storage.cs
- HandlerBase.cs
- IgnoreFileBuildProvider.cs
- AttachedPropertyMethodSelector.cs
- ReservationNotFoundException.cs
- QueryNode.cs
- CodeGroup.cs
- SelectionEditor.cs
- SchemaElementDecl.cs
- TypeSchema.cs
- ObjectTokenCategory.cs
- PropertyConverter.cs
- LassoSelectionBehavior.cs
- AnonymousIdentificationModule.cs
- ServerIdentity.cs
- TextElementEnumerator.cs
- XsdCachingReader.cs
- ComponentEditorPage.cs
- ResourceType.cs
- XPathPatternBuilder.cs
- HandoffBehavior.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- CompoundFileStorageReference.cs
- PropertyInformationCollection.cs
- CultureInfoConverter.cs
- ColumnMap.cs
- SerializableAttribute.cs
- ConnectionStringsExpressionBuilder.cs
- MediaSystem.cs
- Configuration.cs
- HtmlWindow.cs
- Fx.cs
- PathFigure.cs
- JoinSymbol.cs
- FormClosingEvent.cs
- LOSFormatter.cs
- ElementUtil.cs
- InfoCardConstants.cs
- WpfXamlLoader.cs
- Rotation3DAnimationUsingKeyFrames.cs
- GeneralEndpointIdentity.cs
- PersonalizationProvider.cs
- XmlCustomFormatter.cs
- SparseMemoryStream.cs
- IssuanceTokenProviderBase.cs
- LinqDataSourceEditData.cs
- PropertyEmitterBase.cs
- JavaScriptSerializer.cs
- processwaithandle.cs
- XslAst.cs
- securitymgrsite.cs
- ObjectCacheHost.cs
- SelectedGridItemChangedEvent.cs
- RuleProcessor.cs
- CharEntityEncoderFallback.cs
- CollectionChangeEventArgs.cs
- IntranetCredentialPolicy.cs
- OletxVolatileEnlistment.cs
- Column.cs
- GPRECT.cs
- SqlDataSource.cs
- SystemGatewayIPAddressInformation.cs
- WebPartVerbsEventArgs.cs
- RawTextInputReport.cs
- TimeStampChecker.cs
- WindowsPen.cs
- TransformerTypeCollection.cs
- ValidatorCompatibilityHelper.cs
- XmlSignatureProperties.cs
- ObjectManager.cs
- DesignerListAdapter.cs
- ComponentEditorPage.cs
- MailSettingsSection.cs
- XslVisitor.cs
- DbBuffer.cs
- GradientStopCollection.cs
- ReflectionTypeLoadException.cs
- ReferenceAssemblyAttribute.cs
- XamlReader.cs
- ConfigXmlSignificantWhitespace.cs
- MILUtilities.cs
- HandleCollector.cs
- _ConnectionGroup.cs
- CatalogPartChrome.cs
- ZipIORawDataFileBlock.cs
- Peer.cs
- XmlWellformedWriterHelpers.cs
- SingletonInstanceContextProvider.cs
- securitycriticaldata.cs
- RangeValuePattern.cs
- WizardSideBarListControlItemEventArgs.cs
- MouseWheelEventArgs.cs