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
- RangeBase.cs
- CompositionAdorner.cs
- RemotingServices.cs
- StorageMappingItemLoader.cs
- TextElementAutomationPeer.cs
- ReferentialConstraint.cs
- AsymmetricAlgorithm.cs
- ProtocolsConfiguration.cs
- DataGridViewImageCell.cs
- DocumentGridContextMenu.cs
- GraphicsContainer.cs
- SqlCacheDependencySection.cs
- DeferredElementTreeState.cs
- LogicalCallContext.cs
- CorePropertiesFilter.cs
- HtmlToClrEventProxy.cs
- ProvidersHelper.cs
- HttpCacheVaryByContentEncodings.cs
- PingOptions.cs
- EndpointInfo.cs
- SqlCrossApplyToCrossJoin.cs
- EntityConnectionStringBuilderItem.cs
- BoolLiteral.cs
- FormViewUpdateEventArgs.cs
- XmlDictionaryReaderQuotasElement.cs
- PageAsyncTask.cs
- Enum.cs
- SmiRecordBuffer.cs
- EntityContainerAssociationSetEnd.cs
- OrderedEnumerableRowCollection.cs
- OperatingSystem.cs
- PkcsMisc.cs
- DataBoundControlAdapter.cs
- ServiceHttpModule.cs
- TextTreeFixupNode.cs
- ExtendedProperty.cs
- NGCSerializationManager.cs
- RotationValidation.cs
- SurrogateSelector.cs
- DataGridViewSelectedRowCollection.cs
- DbConnectionStringCommon.cs
- ClientScriptManagerWrapper.cs
- KeyInfo.cs
- TagMapInfo.cs
- DataListDesigner.cs
- ListBindableAttribute.cs
- MultiAsyncResult.cs
- BrushConverter.cs
- LineInfo.cs
- NativeObjectSecurity.cs
- ImageCodecInfo.cs
- DataSourceControlBuilder.cs
- OleDbSchemaGuid.cs
- SocketInformation.cs
- TrackingParameters.cs
- ObjectQueryState.cs
- ComponentCommands.cs
- HMACSHA384.cs
- HandledEventArgs.cs
- ToggleButtonAutomationPeer.cs
- KeyedHashAlgorithm.cs
- GlobalizationSection.cs
- AssemblyCollection.cs
- FormsIdentity.cs
- XmlEncoding.cs
- CryptographicAttribute.cs
- DesignerActionItem.cs
- MimeFormReflector.cs
- TypeLoadException.cs
- DocumentOrderComparer.cs
- DataServiceRequest.cs
- MethodRental.cs
- MDIClient.cs
- KeyConverter.cs
- ControlEvent.cs
- DateTimeUtil.cs
- AutoScrollHelper.cs
- TargetFrameworkAttribute.cs
- VirtualizedContainerService.cs
- QualificationDataItem.cs
- EarlyBoundInfo.cs
- HashAlgorithm.cs
- ConfigXmlText.cs
- EtwTrace.cs
- DetailsViewCommandEventArgs.cs
- IsolatedStoragePermission.cs
- ColumnWidthChangedEvent.cs
- Brush.cs
- PathFigureCollectionValueSerializer.cs
- WindowsNonControl.cs
- BehaviorEditorPart.cs
- WinEventWrap.cs
- NameValueSectionHandler.cs
- MessageContractExporter.cs
- datacache.cs
- SourceLineInfo.cs
- SessionPageStatePersister.cs
- TextDpi.cs
- PageCatalogPart.cs
- DragEventArgs.cs