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
- Profiler.cs
- ConfigXmlElement.cs
- ProcessHostServerConfig.cs
- TemplateNameScope.cs
- DialogDivider.cs
- TextServicesHost.cs
- KeyValuePair.cs
- SrgsToken.cs
- RadioButton.cs
- DoWorkEventArgs.cs
- QueryConverter.cs
- TextSelectionHelper.cs
- PrePrepareMethodAttribute.cs
- ButtonBaseAutomationPeer.cs
- SmiEventSink_Default.cs
- Win32PrintDialog.cs
- StatusStrip.cs
- GeneralTransform3DTo2DTo3D.cs
- InsufficientExecutionStackException.cs
- GridViewHeaderRowPresenter.cs
- RichTextBox.cs
- ProcessModelSection.cs
- XmlDataSourceNodeDescriptor.cs
- EditCommandColumn.cs
- AutoSizeComboBox.cs
- TextServicesManager.cs
- RangeBaseAutomationPeer.cs
- ToolStripProgressBar.cs
- ProfileProvider.cs
- ElementHost.cs
- DataGridViewTextBoxColumn.cs
- WaitForChangedResult.cs
- FormsAuthenticationEventArgs.cs
- Request.cs
- ToolStripControlHost.cs
- HashHelper.cs
- DynamicFilterExpression.cs
- ColorComboBox.cs
- ReplacementText.cs
- DocumentPageTextView.cs
- Parser.cs
- TagMapCollection.cs
- EntityDataSourceConfigureObjectContext.cs
- UnaryNode.cs
- OdbcEnvironmentHandle.cs
- XPathParser.cs
- PrintDocument.cs
- EdmMember.cs
- MemberInitExpression.cs
- PropertyTabAttribute.cs
- DbParameterHelper.cs
- AttachInfo.cs
- MetadataItemSerializer.cs
- XmlSchemaGroupRef.cs
- TableCellsCollectionEditor.cs
- SupportingTokenSpecification.cs
- WebHttpBehavior.cs
- DefaultPropertyAttribute.cs
- TypeViewSchema.cs
- CompilerGeneratedAttribute.cs
- HandlerBase.cs
- DataGridViewUtilities.cs
- DynamicPropertyHolder.cs
- SerializerProvider.cs
- SolidBrush.cs
- ThreadExceptionDialog.cs
- PenLineJoinValidation.cs
- WebPartZoneCollection.cs
- WindowsStatic.cs
- CreateWorkflowOwnerCommand.cs
- ToolConsole.cs
- VisualStates.cs
- ConfigXmlComment.cs
- CompositeScriptReferenceEventArgs.cs
- ExtensionDataReader.cs
- URIFormatException.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SplitterEvent.cs
- UIServiceHelper.cs
- PageSetupDialog.cs
- SHA256Cng.cs
- WaitHandle.cs
- LocatorGroup.cs
- _BufferOffsetSize.cs
- Size3DConverter.cs
- TimeStampChecker.cs
- Part.cs
- _CommandStream.cs
- EncryptedKeyIdentifierClause.cs
- FillErrorEventArgs.cs
- RepeaterItem.cs
- LOSFormatter.cs
- JsonClassDataContract.cs
- GlyphRunDrawing.cs
- LessThanOrEqual.cs
- ECDiffieHellmanCng.cs
- RankException.cs
- XmlValidatingReaderImpl.cs
- UnlockCardRequest.cs
- OdbcRowUpdatingEvent.cs