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
- DefaultPerformanceCounters.cs
- ScrollData.cs
- ClientConfigPaths.cs
- SqlGenerator.cs
- DurableInstanceProvider.cs
- ExceptionNotification.cs
- NativeMethods.cs
- EmbeddedMailObjectsCollection.cs
- CompilerCollection.cs
- MessageSecurityOverMsmqElement.cs
- TableLayoutPanelCodeDomSerializer.cs
- NameValueSectionHandler.cs
- DataGridViewCellCollection.cs
- CodeGeneratorAttribute.cs
- TextTreeFixupNode.cs
- VirtualPathUtility.cs
- DataViewListener.cs
- XPathEmptyIterator.cs
- SecurityKeyIdentifier.cs
- Accessible.cs
- mda.cs
- _DigestClient.cs
- DataGridViewTextBoxColumn.cs
- SqlUnionizer.cs
- WebPartConnectionsCancelEventArgs.cs
- XmlHierarchicalEnumerable.cs
- CollectionViewSource.cs
- Missing.cs
- DesignerActionUIService.cs
- DataGridColumnHeaderAutomationPeer.cs
- InvokeMethodActivity.cs
- XamlSerializer.cs
- EllipseGeometry.cs
- XmlArrayAttribute.cs
- AppDomainShutdownMonitor.cs
- FontDialog.cs
- panel.cs
- ByteAnimationBase.cs
- LocatorBase.cs
- HuffmanTree.cs
- ChameleonKey.cs
- IdentifierCollection.cs
- MessageLoggingFilterTraceRecord.cs
- ProgressBar.cs
- XpsLiterals.cs
- ApplicationSecurityManager.cs
- SetIndexBinder.cs
- ListViewDeletedEventArgs.cs
- CannotUnloadAppDomainException.cs
- WsdlInspector.cs
- Brush.cs
- TrustExchangeException.cs
- TemplateEditingService.cs
- MaskInputRejectedEventArgs.cs
- UriScheme.cs
- ToolStripItemTextRenderEventArgs.cs
- ScopeElementCollection.cs
- SQLMembershipProvider.cs
- XamlFilter.cs
- AuthenticationModulesSection.cs
- CompleteWizardStep.cs
- ApplicationSettingsBase.cs
- WorkItem.cs
- CollectionViewGroup.cs
- WeakHashtable.cs
- CodeDomSerializerException.cs
- Reference.cs
- InputElement.cs
- GroupBoxAutomationPeer.cs
- TextCompositionManager.cs
- VisualStyleTypesAndProperties.cs
- SoapHeaderAttribute.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ToolTipService.cs
- ConnectionStringSettingsCollection.cs
- ApplicationDirectoryMembershipCondition.cs
- FacetEnabledSchemaElement.cs
- PolyBezierSegment.cs
- AssemblyBuilderData.cs
- ObjectItemNoOpAssemblyLoader.cs
- ViewManager.cs
- UnhandledExceptionEventArgs.cs
- ControlEvent.cs
- ObservableCollection.cs
- OleAutBinder.cs
- CryptoHelper.cs
- NetworkAddressChange.cs
- RtfToXamlReader.cs
- TextRenderer.cs
- ValidatorUtils.cs
- PreProcessor.cs
- DocumentReferenceCollection.cs
- WebPermission.cs
- OdbcConnectionString.cs
- CodeConditionStatement.cs
- XPathSingletonIterator.cs
- CanExecuteRoutedEventArgs.cs
- GlyphInfoList.cs
- AuthenticationService.cs
- PropertyCollection.cs