Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / Configuration / ConfigXmlAttribute.cs / 1305376 / 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
- WebBrowser.cs
- DesignerActionMethodItem.cs
- RayHitTestParameters.cs
- TrackingStringDictionary.cs
- QilStrConcatenator.cs
- WebExceptionStatus.cs
- ClientConfigPaths.cs
- CompoundFileIOPermission.cs
- SqlDataSourceCustomCommandEditor.cs
- SmiTypedGetterSetter.cs
- Parallel.cs
- OneWayChannelFactory.cs
- SoapConverter.cs
- ResponseBodyWriter.cs
- IntegerFacetDescriptionElement.cs
- TypeReference.cs
- ProvideValueServiceProvider.cs
- StagingAreaInputItem.cs
- PKCS1MaskGenerationMethod.cs
- ActivityDesigner.cs
- XmlSchemaProviderAttribute.cs
- XsdDuration.cs
- MatrixAnimationBase.cs
- KeySpline.cs
- SslStream.cs
- GridViewDeleteEventArgs.cs
- ServiceDeploymentInfo.cs
- DocumentPageViewAutomationPeer.cs
- GeneralTransform.cs
- ShaderRenderModeValidation.cs
- Column.cs
- Exception.cs
- Brush.cs
- Context.cs
- StringExpressionSet.cs
- CryptographicAttribute.cs
- CharacterBufferReference.cs
- NativeMethods.cs
- SendActivityDesigner.cs
- ProgressChangedEventArgs.cs
- RemoteWebConfigurationHostStream.cs
- TraceData.cs
- DataSourceCacheDurationConverter.cs
- TableHeaderCell.cs
- Collection.cs
- ClientViaElement.cs
- ComponentDispatcher.cs
- DatagridviewDisplayedBandsData.cs
- ViewLoader.cs
- NetNamedPipeBinding.cs
- TdsParserHelperClasses.cs
- XmlTextReaderImplHelpers.cs
- EventProxy.cs
- DrawingGroupDrawingContext.cs
- ChameleonKey.cs
- PropertyHelper.cs
- Simplifier.cs
- TraceEventCache.cs
- LowerCaseStringConverter.cs
- Selection.cs
- Font.cs
- ProtocolInformationWriter.cs
- RenderingBiasValidation.cs
- SqlTriggerContext.cs
- TextSearch.cs
- ButtonFieldBase.cs
- PerfCounters.cs
- Descriptor.cs
- EmbossBitmapEffect.cs
- UrlMappingsSection.cs
- BindingExpressionBase.cs
- SmtpMail.cs
- _SslSessionsCache.cs
- AsyncStreamReader.cs
- TreeViewDesigner.cs
- PnrpPermission.cs
- QilSortKey.cs
- SafeHandle.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- PaperSource.cs
- TransformProviderWrapper.cs
- ServiceOperationWrapper.cs
- DeploymentExceptionMapper.cs
- FacetValues.cs
- _IPv4Address.cs
- AttachedAnnotationChangedEventArgs.cs
- SortDescriptionCollection.cs
- UrlMappingsSection.cs
- ServiceOperationHelpers.cs
- DataGridLinkButton.cs
- ContractListAdapter.cs
- StylusPlugInCollection.cs
- InfoCardCryptoHelper.cs
- PropertyToken.cs
- EdmPropertyAttribute.cs
- CodeDomSerializer.cs
- ProxyManager.cs
- Style.cs
- Timer.cs
- DataRowView.cs