Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Configuration / System / Configuration / ConfigXmlAttribute.cs / 1 / ConfigXmlAttribute.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 ConfigXmlAttribute : XmlAttribute, IConfigErrorInfo { int _line; string _filename; public ConfigXmlAttribute( 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); ConfigXmlAttribute clone = cloneNode as ConfigXmlAttribute; 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 ConfigXmlAttribute : XmlAttribute, IConfigErrorInfo { int _line; string _filename; public ConfigXmlAttribute( 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); ConfigXmlAttribute clone = cloneNode as ConfigXmlAttribute; 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
- CodeSnippetCompileUnit.cs
- DataGridPageChangedEventArgs.cs
- ProgressBarAutomationPeer.cs
- RefreshPropertiesAttribute.cs
- SerializationException.cs
- X509Utils.cs
- SqlClientMetaDataCollectionNames.cs
- TextEditor.cs
- FixedSOMElement.cs
- SafeReversePInvokeHandle.cs
- FrugalList.cs
- WebEventCodes.cs
- ViewStateModeByIdAttribute.cs
- ManagementPath.cs
- SliderAutomationPeer.cs
- StringFormat.cs
- DbConnectionStringCommon.cs
- SurrogateChar.cs
- CallSiteBinder.cs
- CalendarAutoFormat.cs
- UnsafeNativeMethods.cs
- LookupTables.cs
- PagesChangedEventArgs.cs
- CustomDictionarySources.cs
- GridEntryCollection.cs
- UrlAuthFailedErrorFormatter.cs
- TransformProviderWrapper.cs
- AccessedThroughPropertyAttribute.cs
- WebPartVerbsEventArgs.cs
- ListBindableAttribute.cs
- ConstraintStruct.cs
- XmlEventCache.cs
- Visual3D.cs
- Point3DConverter.cs
- _SSPIWrapper.cs
- StringSource.cs
- sitestring.cs
- RichTextBox.cs
- CodeGeneratorOptions.cs
- PeerEndPoint.cs
- _UriTypeConverter.cs
- SerTrace.cs
- XmlSequenceWriter.cs
- DPTypeDescriptorContext.cs
- JoinGraph.cs
- HiddenField.cs
- WSFederationHttpBinding.cs
- FontInfo.cs
- StorageMappingItemLoader.cs
- CorrelationTokenInvalidatedHandler.cs
- DataGridViewButtonColumn.cs
- ConfigXmlSignificantWhitespace.cs
- SafeWaitHandle.cs
- Form.cs
- mediaclock.cs
- WebBrowserEvent.cs
- SettingsAttributeDictionary.cs
- LocalizableResourceBuilder.cs
- Properties.cs
- ApplicationProxyInternal.cs
- IIS7WorkerRequest.cs
- RenderingBiasValidation.cs
- XslTransform.cs
- HopperCache.cs
- coordinatorfactory.cs
- _CookieModule.cs
- HashJoinQueryOperatorEnumerator.cs
- BoolLiteral.cs
- SessionEndingCancelEventArgs.cs
- SpecialNameAttribute.cs
- MouseCaptureWithinProperty.cs
- FilterElement.cs
- XmlQuerySequence.cs
- GridViewColumn.cs
- UnauthorizedAccessException.cs
- UnsignedPublishLicense.cs
- _CookieModule.cs
- ChangeProcessor.cs
- TextTreePropertyUndoUnit.cs
- PeerName.cs
- ProtocolReflector.cs
- UpdateProgress.cs
- EmbeddedObject.cs
- AspNetHostingPermission.cs
- Bitmap.cs
- DebuggerAttributes.cs
- FontNameConverter.cs
- ColorContext.cs
- Rights.cs
- EventListenerClientSide.cs
- AccessedThroughPropertyAttribute.cs
- AtomMaterializerLog.cs
- ProcessModuleCollection.cs
- GridViewRowPresenterBase.cs
- NativeMethods.cs
- LinqDataSourceStatusEventArgs.cs
- DataGridViewRowHeaderCell.cs
- FileLoadException.cs
- DocumentPageView.cs
- OdbcConnectionHandle.cs