Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / Configuration / ConfigXmlElement.cs / 1305376 / ConfigXmlElement.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 ConfigXmlElement : XmlElement, IConfigErrorInfo {
int _line;
string _filename;
public ConfigXmlElement( 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);
ConfigXmlElement clone = cloneNode as ConfigXmlElement;
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
- SelectionProcessor.cs
- DataBinder.cs
- BitmapCodecInfoInternal.cs
- OdbcConnectionOpen.cs
- Publisher.cs
- RoutedEventConverter.cs
- SmiEventSink_DeferedProcessing.cs
- Calendar.cs
- RuleInfoComparer.cs
- DataGridViewColumnHeaderCell.cs
- FacetChecker.cs
- SerializationHelper.cs
- Condition.cs
- WebPartCollection.cs
- SuppressIldasmAttribute.cs
- BooleanConverter.cs
- LoginNameDesigner.cs
- HttpValueCollection.cs
- DockingAttribute.cs
- SafePointer.cs
- FolderLevelBuildProviderCollection.cs
- AesCryptoServiceProvider.cs
- WriterOutput.cs
- WebMessageEncoderFactory.cs
- QuaternionValueSerializer.cs
- DockProviderWrapper.cs
- TdsParserHelperClasses.cs
- dataobject.cs
- DesignerActionPanel.cs
- MaskDescriptor.cs
- DelegateOutArgument.cs
- Attributes.cs
- ActiveXHelper.cs
- StringCollectionEditor.cs
- CharEnumerator.cs
- CallbackValidatorAttribute.cs
- GraphicsPath.cs
- PageThemeBuildProvider.cs
- TraceEventCache.cs
- DocumentPageView.cs
- PropertyBuilder.cs
- DecoderFallback.cs
- TargetParameterCountException.cs
- ExcludeFromCodeCoverageAttribute.cs
- SyndicationDeserializer.cs
- MapPathBasedVirtualPathProvider.cs
- Debug.cs
- InvalidContentTypeException.cs
- KnownTypes.cs
- WindowsRichEditRange.cs
- Char.cs
- MetadataPropertyCollection.cs
- DataGridSortCommandEventArgs.cs
- ObjectDataSourceMethodEventArgs.cs
- TrackingCondition.cs
- FixUp.cs
- PrtTicket_Base.cs
- TileBrush.cs
- NetworkInformationException.cs
- DbConnectionOptions.cs
- ListItemsPage.cs
- Queue.cs
- SystemIPAddressInformation.cs
- ObjectManager.cs
- JsonUriDataContract.cs
- TreeNode.cs
- Errors.cs
- HelpEvent.cs
- XmlUTF8TextReader.cs
- GifBitmapDecoder.cs
- ReaderWriterLockWrapper.cs
- DataGridViewSelectedCellCollection.cs
- RoutedEventConverter.cs
- Link.cs
- DataGridSortingEventArgs.cs
- QueryLifecycle.cs
- RowToFieldTransformer.cs
- WindowShowOrOpenTracker.cs
- RootBrowserWindowAutomationPeer.cs
- EventWaitHandleSecurity.cs
- TextTreeInsertElementUndoUnit.cs
- SRDisplayNameAttribute.cs
- TextBox.cs
- EtwTrackingParticipant.cs
- TableParaClient.cs
- WindowShowOrOpenTracker.cs
- PointLight.cs
- KnownBoxes.cs
- ScrollViewerAutomationPeer.cs
- PageHandlerFactory.cs
- LocationReference.cs
- XmlUtil.cs
- WebPartDisplayMode.cs
- PageThemeParser.cs
- TextDecorationUnitValidation.cs
- GridViewCommandEventArgs.cs
- EntityDataSourceUtil.cs
- PersonalizationProviderCollection.cs
- RectConverter.cs
- LinqDataSourceStatusEventArgs.cs