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
- InitializingNewItemEventArgs.cs
- ManagedIStream.cs
- ToolTipAutomationPeer.cs
- x509utils.cs
- Verify.cs
- InputScope.cs
- QueryResponse.cs
- CommonProperties.cs
- DatatypeImplementation.cs
- ExpressionQuoter.cs
- MatchingStyle.cs
- RegionData.cs
- SchemaNamespaceManager.cs
- BypassElementCollection.cs
- StandardBindingElement.cs
- Int32Collection.cs
- TreeNodeMouseHoverEvent.cs
- SplineKeyFrames.cs
- PolyBezierSegmentFigureLogic.cs
- UnSafeCharBuffer.cs
- SQLBinary.cs
- TargetException.cs
- SQLResource.cs
- SynchronizationLockException.cs
- TreeViewItem.cs
- CodeGroup.cs
- TypefaceMetricsCache.cs
- ChangeProcessor.cs
- TransformerTypeCollection.cs
- DataMemberFieldEditor.cs
- COAUTHIDENTITY.cs
- XPathItem.cs
- SQLDecimal.cs
- ResolvedKeyFrameEntry.cs
- CurrentTimeZone.cs
- XPathException.cs
- WindowsTab.cs
- Light.cs
- RecognitionEventArgs.cs
- WebPartManager.cs
- IList.cs
- Process.cs
- ComponentEditorForm.cs
- DocumentCollection.cs
- MostlySingletonList.cs
- SourceFileInfo.cs
- TextOutput.cs
- WebServiceResponseDesigner.cs
- InstanceDescriptor.cs
- ModelItemDictionary.cs
- ApplicationTrust.cs
- ParagraphResult.cs
- CornerRadiusConverter.cs
- FileEnumerator.cs
- PriorityChain.cs
- TextEncodedRawTextWriter.cs
- DrawingAttributeSerializer.cs
- HMACMD5.cs
- GeometryModel3D.cs
- LazyTextWriterCreator.cs
- DbExpressionRules.cs
- AppDomainEvidenceFactory.cs
- MyContact.cs
- OracleBFile.cs
- PropertyFilterAttribute.cs
- BinaryObjectWriter.cs
- Application.cs
- DataGridViewColumnStateChangedEventArgs.cs
- VectorAnimation.cs
- TypeDescriptionProviderAttribute.cs
- Control.cs
- AddInIpcChannel.cs
- URLString.cs
- DescriptionCreator.cs
- DoubleAnimationUsingPath.cs
- DataSourceControlBuilder.cs
- propertytag.cs
- BamlTreeMap.cs
- RadioButtonAutomationPeer.cs
- ListViewUpdateEventArgs.cs
- UIElementPropertyUndoUnit.cs
- EndOfStreamException.cs
- GridViewSortEventArgs.cs
- QilPatternVisitor.cs
- ApplicationTrust.cs
- FixedTextView.cs
- GPPOINTF.cs
- DeploymentSection.cs
- PlacementWorkspace.cs
- CustomErrorCollection.cs
- TraceLog.cs
- Brush.cs
- DiscoveryReference.cs
- CompModSwitches.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- HtmlButton.cs
- IriParsingElement.cs
- AlphabeticalEnumConverter.cs
- ComplexObject.cs
- BitmapEncoder.cs