Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Configuration / System / Configuration / ConfigXmlComment.cs / 1 / ConfigXmlComment.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 ConfigXmlComment : XmlComment, IConfigErrorInfo {
int _line;
string _filename;
public ConfigXmlComment( string filename, int line, string comment, XmlDocument doc )
: base( comment, 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);
ConfigXmlComment clone = cloneNode as ConfigXmlComment;
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 ConfigXmlComment : XmlComment, IConfigErrorInfo {
int _line;
string _filename;
public ConfigXmlComment( string filename, int line, string comment, XmlDocument doc )
: base( comment, 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);
ConfigXmlComment clone = cloneNode as ConfigXmlComment;
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
- DBConnectionString.cs
- PrivilegeNotHeldException.cs
- Lease.cs
- CompilerLocalReference.cs
- CodePrimitiveExpression.cs
- WebControlAdapter.cs
- EllipseGeometry.cs
- SiteMapSection.cs
- ClientBuildManager.cs
- User.cs
- EncryptedReference.cs
- ConnectionConsumerAttribute.cs
- SqlProfileProvider.cs
- ConfigXmlAttribute.cs
- IdentityValidationException.cs
- AutomationPeer.cs
- ExpressionBuilderCollection.cs
- XmlAnyElementAttributes.cs
- TemplateEditingVerb.cs
- EmbeddedMailObjectsCollection.cs
- TextSearch.cs
- SqlFacetAttribute.cs
- PropertyGeneratedEventArgs.cs
- _ScatterGatherBuffers.cs
- SessionPageStatePersister.cs
- RegexFCD.cs
- DigestComparer.cs
- HeaderUtility.cs
- NotifyIcon.cs
- XmlSerializationReader.cs
- GridLengthConverter.cs
- EncoderReplacementFallback.cs
- Preprocessor.cs
- DataRowCollection.cs
- UInt32.cs
- TextParagraphView.cs
- ThumbAutomationPeer.cs
- EventRoute.cs
- Nullable.cs
- MsmqIntegrationOutputChannel.cs
- PassportAuthenticationModule.cs
- BrowserCapabilitiesCodeGenerator.cs
- HttpsChannelListener.cs
- ElementAction.cs
- SqlBuffer.cs
- CqlGenerator.cs
- XmlAttributeCollection.cs
- BaseTemplateParser.cs
- TypeTypeConverter.cs
- SqlNodeTypeOperators.cs
- HttpCacheParams.cs
- DataGridToolTip.cs
- Hash.cs
- ListViewItemMouseHoverEvent.cs
- EditorPart.cs
- ADMembershipUser.cs
- OciEnlistContext.cs
- ManipulationStartingEventArgs.cs
- DataObjectEventArgs.cs
- UserControl.cs
- TypeSemantics.cs
- CompleteWizardStep.cs
- GenericUriParser.cs
- SystemKeyConverter.cs
- pingexception.cs
- coordinator.cs
- TogglePatternIdentifiers.cs
- Messages.cs
- JoinGraph.cs
- ValueExpressions.cs
- XslTransform.cs
- XmlSchemaAppInfo.cs
- ProcessInputEventArgs.cs
- IOException.cs
- ChoiceConverter.cs
- ConfigXmlReader.cs
- SystemColorTracker.cs
- initElementDictionary.cs
- ConversionContext.cs
- RSAPKCS1SignatureFormatter.cs
- PathSegment.cs
- Util.cs
- glyphs.cs
- UnsafeNetInfoNativeMethods.cs
- EntitySetBase.cs
- Clipboard.cs
- WithStatement.cs
- ClrProviderManifest.cs
- GridViewCancelEditEventArgs.cs
- MetadataArtifactLoaderCompositeFile.cs
- Int64Storage.cs
- ActiveXHost.cs
- CompiledQuery.cs
- SoapFault.cs
- ModuleBuilder.cs
- SiteMapNodeItemEventArgs.cs
- InkSerializer.cs
- Facet.cs
- UnSafeCharBuffer.cs
- StateElement.cs