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
- MorphHelper.cs
- EFTableProvider.cs
- OutputCacheSettings.cs
- RectangleGeometry.cs
- NotifyIcon.cs
- DispatcherSynchronizationContext.cs
- TransformConverter.cs
- SqlCacheDependency.cs
- ObservableDictionary.cs
- StorageConditionPropertyMapping.cs
- WinInetCache.cs
- ToolBarTray.cs
- ToolboxItemCollection.cs
- PackageRelationshipSelector.cs
- HttpProfileGroupBase.cs
- ExpressionCopier.cs
- XmlSchemaAttributeGroup.cs
- FieldMetadata.cs
- Interfaces.cs
- Hash.cs
- DateTimeFormatInfoScanner.cs
- ApplicationProxyInternal.cs
- Double.cs
- EditingCoordinator.cs
- MailMessageEventArgs.cs
- AssertFilter.cs
- MaskedTextProvider.cs
- TextElementCollectionHelper.cs
- dbenumerator.cs
- PropertyGroupDescription.cs
- FieldNameLookup.cs
- RootBrowserWindow.cs
- Property.cs
- Monitor.cs
- RowsCopiedEventArgs.cs
- CachedBitmap.cs
- ResourceExpressionEditorSheet.cs
- HostProtectionException.cs
- XmlIncludeAttribute.cs
- ObjectStateFormatter.cs
- ComplexLine.cs
- ChannelFactory.cs
- DataGridViewAccessibleObject.cs
- TimeManager.cs
- CreateUserWizardStep.cs
- DbTransaction.cs
- BufferedGraphics.cs
- LinearGradientBrush.cs
- SecurityTokenResolver.cs
- ZipFileInfoCollection.cs
- Journaling.cs
- complextypematerializer.cs
- SpStreamWrapper.cs
- GlobalAllocSafeHandle.cs
- InsufficientMemoryException.cs
- ControlEvent.cs
- __FastResourceComparer.cs
- TypedDataSourceCodeGenerator.cs
- XmlWhitespace.cs
- MediaElementAutomationPeer.cs
- HashAlgorithm.cs
- CacheMemory.cs
- mediaclock.cs
- DeviceSpecificChoice.cs
- X509WindowsSecurityToken.cs
- MethodImplAttribute.cs
- DefaultProxySection.cs
- EdmMember.cs
- StatusBarPanelClickEvent.cs
- OrthographicCamera.cs
- SchemaType.cs
- DataKeyArray.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- Ray3DHitTestResult.cs
- Positioning.cs
- PageContentAsyncResult.cs
- QilInvokeEarlyBound.cs
- TdsRecordBufferSetter.cs
- FileDialog_Vista.cs
- _ConnectOverlappedAsyncResult.cs
- ObjectListSelectEventArgs.cs
- ListViewAutomationPeer.cs
- ValidationError.cs
- FixedHighlight.cs
- HandlerFactoryCache.cs
- SerializationException.cs
- BufferAllocator.cs
- RegionIterator.cs
- CapabilitiesAssignment.cs
- _NetworkingPerfCounters.cs
- HttpContext.cs
- UnwrappedTypesXmlSerializerManager.cs
- _CommandStream.cs
- DSACryptoServiceProvider.cs
- SingleAnimationBase.cs
- CLSCompliantAttribute.cs
- PageStatePersister.cs
- DateRangeEvent.cs
- MouseBinding.cs
- BooleanFunctions.cs