Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / Configuration / ConfigXmlElement.cs / 1305376 / 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
- Label.cs
- UnrecognizedPolicyAssertionElement.cs
- DataGridViewRowPostPaintEventArgs.cs
- CultureNotFoundException.cs
- ReadOnlyDataSourceView.cs
- SelectionPattern.cs
- ECDiffieHellmanPublicKey.cs
- StandardOleMarshalObject.cs
- Keywords.cs
- BigInt.cs
- JsonFormatGeneratorStatics.cs
- SqlFlattener.cs
- InvokeHandlers.cs
- PageThemeBuildProvider.cs
- XamlClipboardData.cs
- DictionaryBase.cs
- HighlightVisual.cs
- CodeDomSerializerException.cs
- Nullable.cs
- WebReferencesBuildProvider.cs
- Assert.cs
- OleDbRowUpdatedEvent.cs
- PolicyUnit.cs
- LinkConverter.cs
- TextFormatterImp.cs
- BlockCollection.cs
- FontStyle.cs
- DynamicEndpointElement.cs
- XmlMapping.cs
- PropertiesTab.cs
- PackWebRequestFactory.cs
- LostFocusEventManager.cs
- SessionStateSection.cs
- RuleSettings.cs
- HttpProfileBase.cs
- DataReceivedEventArgs.cs
- CompressStream.cs
- SourceFilter.cs
- MenuItemStyleCollection.cs
- StringHandle.cs
- TableLayoutColumnStyleCollection.cs
- ClientApiGenerator.cs
- ParallelQuery.cs
- OdbcConnectionPoolProviderInfo.cs
- TraceRecord.cs
- wmiprovider.cs
- RoutedPropertyChangedEventArgs.cs
- OdbcPermission.cs
- CryptoApi.cs
- WinFormsUtils.cs
- DoubleIndependentAnimationStorage.cs
- TagPrefixInfo.cs
- HtmlSelect.cs
- TimersDescriptionAttribute.cs
- SoapTypeAttribute.cs
- baseaxisquery.cs
- InternalResources.cs
- WebPartDisplayModeCancelEventArgs.cs
- PrimaryKeyTypeConverter.cs
- Int32Converter.cs
- Deflater.cs
- Listbox.cs
- ObjectHelper.cs
- CurrentTimeZone.cs
- DecimalAnimationUsingKeyFrames.cs
- ImmComposition.cs
- HttpRequestCacheValidator.cs
- GridView.cs
- XmlTypeAttribute.cs
- CounterCreationData.cs
- DesignerView.Commands.cs
- MiniLockedBorderGlyph.cs
- SmtpNegotiateAuthenticationModule.cs
- LinqDataSourceView.cs
- EdmToObjectNamespaceMap.cs
- TableLayoutSettingsTypeConverter.cs
- ProfileGroupSettings.cs
- ContainerAction.cs
- ObjectToken.cs
- TextParagraphCache.cs
- RealizationContext.cs
- DefaultHttpHandler.cs
- ColorContextHelper.cs
- SafeThreadHandle.cs
- HtmlInputSubmit.cs
- TabItemAutomationPeer.cs
- JsonReader.cs
- SqlGatherProducedAliases.cs
- OleDbCommand.cs
- Funcletizer.cs
- EntityConnectionStringBuilder.cs
- RegexCharClass.cs
- GZipStream.cs
- ObjectDataSourceView.cs
- CodeBlockBuilder.cs
- MethodCallConverter.cs
- ParentQuery.cs
- LowerCaseStringConverter.cs
- CheckedListBox.cs
- QueryOutputWriter.cs