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 / 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
- XXXOnTypeBuilderInstantiation.cs
- ItemContainerGenerator.cs
- StyleSelector.cs
- ExclusiveCanonicalizationTransform.cs
- SafeNativeMethods.cs
- baseaxisquery.cs
- SspiSafeHandles.cs
- WebBrowsableAttribute.cs
- RadioButtonList.cs
- Duration.cs
- TagMapCollection.cs
- CachedRequestParams.cs
- DataGridViewComponentPropertyGridSite.cs
- DataGridViewTopLeftHeaderCell.cs
- EventLogEntryCollection.cs
- QilInvoke.cs
- diagnosticsswitches.cs
- UriTemplateVariablePathSegment.cs
- SetMemberBinder.cs
- BezierSegment.cs
- IgnoreSectionHandler.cs
- TemplateBuilder.cs
- XmlSchemaComplexContent.cs
- _SslSessionsCache.cs
- ValueUtilsSmi.cs
- HtmlInputImage.cs
- VectorAnimationUsingKeyFrames.cs
- DbProviderFactories.cs
- GridViewUpdatedEventArgs.cs
- TriggerAction.cs
- SecurityMode.cs
- EntityDataSourceReferenceGroup.cs
- XmlCountingReader.cs
- WebPartActionVerb.cs
- updateconfighost.cs
- regiisutil.cs
- ToolConsole.cs
- IntSecurity.cs
- BulletDecorator.cs
- ButtonField.cs
- GraphicsState.cs
- XPathPatternParser.cs
- TransactionTraceIdentifier.cs
- AuthenticatedStream.cs
- SqlGatherConsumedAliases.cs
- SafePointer.cs
- DecimalConverter.cs
- ProfileService.cs
- SHA256Cng.cs
- CodeComment.cs
- DataColumnCollection.cs
- PassportIdentity.cs
- DotAtomReader.cs
- CompositeCollectionView.cs
- SoapClientProtocol.cs
- AspNetHostingPermission.cs
- CssClassPropertyAttribute.cs
- PrinterResolution.cs
- Constraint.cs
- OrderedDictionary.cs
- CqlLexer.cs
- Symbol.cs
- ReaderContextStackData.cs
- XmlSchemas.cs
- XdrBuilder.cs
- Emitter.cs
- EntityModelBuildProvider.cs
- EventProviderTraceListener.cs
- HtmlAnchor.cs
- XmlCharType.cs
- SqlCrossApplyToCrossJoin.cs
- DesignerCommandAdapter.cs
- TransferRequestHandler.cs
- XsdDuration.cs
- FilteredDataSetHelper.cs
- ElementAction.cs
- TempEnvironment.cs
- FakeModelPropertyImpl.cs
- ListControlActionList.cs
- EntityClientCacheEntry.cs
- FontStretch.cs
- ResolveMatchesApril2005.cs
- ProviderIncompatibleException.cs
- CorrelationTokenInvalidatedHandler.cs
- GridErrorDlg.cs
- FindProgressChangedEventArgs.cs
- EditorBrowsableAttribute.cs
- Soap.cs
- CachedPathData.cs
- XmlSubtreeReader.cs
- InstallerTypeAttribute.cs
- OdbcErrorCollection.cs
- TextElementCollection.cs
- ToolStripMenuItem.cs
- CodeTypeMemberCollection.cs
- ConnectionsZone.cs
- XmlCharType.cs
- XmlValidatingReaderImpl.cs
- FilterableAttribute.cs
- BamlTreeNode.cs