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
- PropertyGridEditorPart.cs
- DescendantOverDescendantQuery.cs
- PasswordRecovery.cs
- MenuItemCollection.cs
- PrivilegedConfigurationManager.cs
- WebPartMenuStyle.cs
- httpserverutility.cs
- GPStream.cs
- SubtreeProcessor.cs
- DataGridLinkButton.cs
- ServiceHostingEnvironment.cs
- CommonDialog.cs
- CatalogPartChrome.cs
- RowsCopiedEventArgs.cs
- EndpointDiscoveryMetadataCD1.cs
- SystemWebCachingSectionGroup.cs
- ListComponentEditor.cs
- BooleanStorage.cs
- TransformPatternIdentifiers.cs
- ConnectionString.cs
- DataServiceQueryContinuation.cs
- Vector.cs
- FontSourceCollection.cs
- IndependentAnimationStorage.cs
- LogAppendAsyncResult.cs
- Evidence.cs
- ValidatingPropertiesEventArgs.cs
- AsyncContentLoadedEventArgs.cs
- Wildcard.cs
- WmlCalendarAdapter.cs
- Rect3DConverter.cs
- ObjectQuery_EntitySqlExtensions.cs
- ConfigXmlElement.cs
- CookieProtection.cs
- SynchronizedDisposablePool.cs
- ToolStripPanelRenderEventArgs.cs
- RequestResizeEvent.cs
- HtmlTableCell.cs
- HttpHeaderCollection.cs
- BindingNavigator.cs
- PeerInvitationResponse.cs
- Odbc32.cs
- XsltArgumentList.cs
- TextTrailingCharacterEllipsis.cs
- InfoCardCryptoHelper.cs
- CollectionContainer.cs
- _DomainName.cs
- HashStream.cs
- AutoGeneratedField.cs
- TreeNodeClickEventArgs.cs
- InvalidWMPVersionException.cs
- LinqDataSourceDisposeEventArgs.cs
- SynchronizingStream.cs
- BuildTopDownAttribute.cs
- PasswordBox.cs
- FormViewInsertedEventArgs.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- PrintPreviewDialog.cs
- serverconfig.cs
- SafeRightsManagementEnvironmentHandle.cs
- WindowsToolbarAsMenu.cs
- TreeViewItem.cs
- DoubleCollectionConverter.cs
- FileUtil.cs
- SHA384CryptoServiceProvider.cs
- SortedDictionary.cs
- GAC.cs
- LocalizableAttribute.cs
- AQNBuilder.cs
- AccessText.cs
- OneWayChannelListener.cs
- BinaryMethodMessage.cs
- SqlDataSourceEnumerator.cs
- SystemIPInterfaceStatistics.cs
- Matrix3D.cs
- TargetInvocationException.cs
- MenuAutomationPeer.cs
- NamespaceInfo.cs
- DrawingAttributes.cs
- DataBoundLiteralControl.cs
- SubqueryTrackingVisitor.cs
- QilGenerator.cs
- RowToParametersTransformer.cs
- UdpRetransmissionSettings.cs
- ThumbButtonInfoCollection.cs
- TransactedBatchingElement.cs
- InputBindingCollection.cs
- ArcSegment.cs
- RequiredFieldValidator.cs
- DesignerMetadata.cs
- __Error.cs
- ColorAnimationUsingKeyFrames.cs
- TypeToArgumentTypeConverter.cs
- DoubleKeyFrameCollection.cs
- DataServiceProcessingPipeline.cs
- HwndProxyElementProvider.cs
- Int16AnimationBase.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- EdmComplexTypeAttribute.cs
- IsolatedStorageSecurityState.cs