Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WhitespaceRule.cs
- RowUpdatingEventArgs.cs
- TextTreePropertyUndoUnit.cs
- RijndaelManagedTransform.cs
- HtmlInputCheckBox.cs
- HelpInfo.cs
- ZoneLinkButton.cs
- XmlEncoding.cs
- BeginEvent.cs
- MultiAsyncResult.cs
- OdbcHandle.cs
- HttpHandlerActionCollection.cs
- Lease.cs
- ConnectionString.cs
- WebServiceHostFactory.cs
- ToolboxItem.cs
- Pair.cs
- SslStreamSecurityBindingElement.cs
- ThreadStaticAttribute.cs
- LOSFormatter.cs
- FixedBufferAttribute.cs
- TimelineClockCollection.cs
- MsmqHostedTransportManager.cs
- DrawToolTipEventArgs.cs
- PreviewPageInfo.cs
- DataTableMappingCollection.cs
- SourceFilter.cs
- ListSortDescriptionCollection.cs
- AtomContentProperty.cs
- WebPartDisplayModeCollection.cs
- DirectionalLight.cs
- CodeBlockBuilder.cs
- PeerNameResolver.cs
- StrongNameIdentityPermission.cs
- MarshalDirectiveException.cs
- LassoSelectionBehavior.cs
- TemplatedMailWebEventProvider.cs
- MsmqIntegrationBindingElement.cs
- XmlStringTable.cs
- CodeDOMProvider.cs
- SqlUserDefinedTypeAttribute.cs
- DocumentGridPage.cs
- ModelUIElement3D.cs
- CustomAssemblyResolver.cs
- shaperfactory.cs
- FontConverter.cs
- Metadata.cs
- XmlUrlResolver.cs
- IUnknownConstantAttribute.cs
- InputReferenceExpression.cs
- MethodExpr.cs
- ButtonPopupAdapter.cs
- FtpWebResponse.cs
- OdbcConnectionPoolProviderInfo.cs
- ObjectTag.cs
- ControlParser.cs
- BlurBitmapEffect.cs
- ChangeNode.cs
- TypeBuilder.cs
- UpdatableWrapper.cs
- XmlReader.cs
- ArgIterator.cs
- PaperSize.cs
- StringPropertyBuilder.cs
- TabControlCancelEvent.cs
- SqlDataReader.cs
- Sql8ExpressionRewriter.cs
- TextServicesCompartment.cs
- FontFamily.cs
- DrawingBrush.cs
- MailWebEventProvider.cs
- RadioButton.cs
- XmlReader.cs
- UnhandledExceptionEventArgs.cs
- DataTableCollection.cs
- prompt.cs
- AccessDataSourceView.cs
- ProcessThreadCollection.cs
- SecureUICommand.cs
- localization.cs
- newinstructionaction.cs
- DependencySource.cs
- WebServiceTypeData.cs
- Serializer.cs
- TextLineResult.cs
- HostExecutionContextManager.cs
- ConstraintStruct.cs
- ContentFileHelper.cs
- InvalidEnumArgumentException.cs
- MenuRendererClassic.cs
- TextBoxAutomationPeer.cs
- LayoutTable.cs
- UrlMappingsSection.cs
- TypeElement.cs
- TopClause.cs
- EventProxy.cs
- FigureHelper.cs
- InternalCompensate.cs
- EntitySqlException.cs
- PreDigestedSignedInfo.cs