Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / 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.
//------------------------------------------------------------------------------
//
// 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
- AddingNewEventArgs.cs
- Converter.cs
- Utils.cs
- Wildcard.cs
- StylusPointDescription.cs
- OracleInfoMessageEventArgs.cs
- DataGridHeaderBorder.cs
- ProcessProtocolHandler.cs
- ProfileBuildProvider.cs
- XmlUnspecifiedAttribute.cs
- XPathNavigatorReader.cs
- FixedPage.cs
- ZipIOLocalFileDataDescriptor.cs
- ProcessHost.cs
- OutOfMemoryException.cs
- TokenizerHelper.cs
- QueryStringParameter.cs
- NetSectionGroup.cs
- EntityContainer.cs
- DataShape.cs
- KeyValuePair.cs
- EventLogStatus.cs
- DocumentOutline.cs
- TransformerInfo.cs
- Rijndael.cs
- TextRenderer.cs
- CodeDOMUtility.cs
- Package.cs
- ProcessHostServerConfig.cs
- ImageList.cs
- PropertyConverter.cs
- LazyInitializer.cs
- DbProviderSpecificTypePropertyAttribute.cs
- GenericAuthenticationEventArgs.cs
- DataTableNewRowEvent.cs
- MimeTypePropertyAttribute.cs
- ErrorEventArgs.cs
- SqlGenericUtil.cs
- XmlSchemaSimpleContentRestriction.cs
- SetMemberBinder.cs
- UrlMappingsSection.cs
- CssClassPropertyAttribute.cs
- ImageDrawing.cs
- RecommendedAsConfigurableAttribute.cs
- TransactionManager.cs
- FixedLineResult.cs
- SubpageParaClient.cs
- XPathDescendantIterator.cs
- EmbeddedObject.cs
- ScriptControl.cs
- ResourceContainer.cs
- ColorPalette.cs
- EntityTemplateUserControl.cs
- CheckBox.cs
- ObjectContextServiceProvider.cs
- TriggerBase.cs
- UserControlParser.cs
- DirectoryNotFoundException.cs
- ImageListStreamer.cs
- DynamicRenderer.cs
- AggregationMinMaxHelpers.cs
- TextBoxAutomationPeer.cs
- RotateTransform.cs
- ParserHooks.cs
- WebPartConnectionsEventArgs.cs
- CodeNamespaceImportCollection.cs
- ViewgenContext.cs
- _RequestCacheProtocol.cs
- SqlError.cs
- DataTableReaderListener.cs
- Component.cs
- NameHandler.cs
- XmlSignificantWhitespace.cs
- ProxyBuilder.cs
- RedistVersionInfo.cs
- WebServiceResponseDesigner.cs
- Int32AnimationUsingKeyFrames.cs
- NavigationPropertyEmitter.cs
- DataSourceXmlElementAttribute.cs
- HostElement.cs
- dsa.cs
- UshortList2.cs
- _HeaderInfo.cs
- DataGridRowHeaderAutomationPeer.cs
- DataPagerField.cs
- AdapterUtil.cs
- BaseValidator.cs
- StreamGeometryContext.cs
- log.cs
- TypeInfo.cs
- CodeParameterDeclarationExpressionCollection.cs
- DtrList.cs
- ReflectionServiceProvider.cs
- StructuralType.cs
- LayoutEditorPart.cs
- ServiceProviders.cs
- Control.cs
- PersonalizableTypeEntry.cs
- LinkUtilities.cs
- HttpListenerContext.cs