Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Configuration / 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
- ProxyHelper.cs
- ErrorHandlingReceiver.cs
- DataMisalignedException.cs
- TextParagraph.cs
- AttributeCollection.cs
- FillErrorEventArgs.cs
- SafeProcessHandle.cs
- Selector.cs
- MarshalDirectiveException.cs
- ListManagerBindingsCollection.cs
- ButtonDesigner.cs
- ActivityInfo.cs
- ConnectionManagementElement.cs
- SerializationTrace.cs
- Size.cs
- ObjectDataSourceFilteringEventArgs.cs
- RegexInterpreter.cs
- AncestorChangedEventArgs.cs
- SizeAnimationClockResource.cs
- HttpCacheVary.cs
- DelegatingConfigHost.cs
- SectionUpdates.cs
- SignatureDescription.cs
- SingleKeyFrameCollection.cs
- BasicViewGenerator.cs
- ControlsConfig.cs
- X509CertificateTrustedIssuerElementCollection.cs
- ApplicationDirectory.cs
- ProfileEventArgs.cs
- InstancePersistenceCommandException.cs
- LeftCellWrapper.cs
- WebPartDescription.cs
- remotingproxy.cs
- TabPage.cs
- PixelFormatConverter.cs
- Guid.cs
- ResolveDuplexCD1AsyncResult.cs
- WorkerRequest.cs
- DataTransferEventArgs.cs
- Intellisense.cs
- SamlAttribute.cs
- SchemaAttDef.cs
- EventLogger.cs
- safex509handles.cs
- CommonObjectSecurity.cs
- PropertyGridDesigner.cs
- SurrogateSelector.cs
- BuildProviderAppliesToAttribute.cs
- FixedStringLookup.cs
- RuleAttributes.cs
- BinaryObjectReader.cs
- ValidationErrorInfo.cs
- PackUriHelper.cs
- InitializerFacet.cs
- SiteIdentityPermission.cs
- EnumBuilder.cs
- DebugInfoGenerator.cs
- CustomTypeDescriptor.cs
- JoinCqlBlock.cs
- CompiledRegexRunner.cs
- StreamReader.cs
- DATA_BLOB.cs
- DefaultBindingPropertyAttribute.cs
- ThousandthOfEmRealPoints.cs
- PropagationProtocolsTracing.cs
- WebPartPersonalization.cs
- DbModificationClause.cs
- AppDomainUnloadedException.cs
- WindowsListViewItem.cs
- XamlReaderHelper.cs
- TypeBuilderInstantiation.cs
- EntityConnectionStringBuilder.cs
- SqlEnums.cs
- xmlglyphRunInfo.cs
- CodeTypeParameter.cs
- DropDownList.cs
- UserControl.cs
- RepeatButtonAutomationPeer.cs
- LinkedResource.cs
- ContextMenu.cs
- CorrelationValidator.cs
- PieceNameHelper.cs
- SmtpCommands.cs
- ScrollChangedEventArgs.cs
- MutableAssemblyCacheEntry.cs
- Math.cs
- StorageModelBuildProvider.cs
- ComponentManagerBroker.cs
- Geometry3D.cs
- SmtpSection.cs
- DbConnectionPoolIdentity.cs
- CodeSubDirectory.cs
- SHA512.cs
- HttpHandler.cs
- TraceData.cs
- CommandEventArgs.cs
- PerspectiveCamera.cs
- ClearTypeHintValidation.cs
- MouseOverProperty.cs
- HtmlTextArea.cs