Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / Configuration / ConfigXmlComment.cs / 1305376 / 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
- CallbackBehaviorAttribute.cs
- InputDevice.cs
- TargetControlTypeCache.cs
- WindowsIdentity.cs
- ValidationSummary.cs
- SrgsRuleRef.cs
- GenericArgumentsUpdater.cs
- DependencyPropertyChangedEventArgs.cs
- ConnectionInterfaceCollection.cs
- DesignerCatalogPartChrome.cs
- QuaternionAnimationBase.cs
- TextParagraphCache.cs
- recordstatefactory.cs
- DataSetMappper.cs
- DoubleAnimationUsingKeyFrames.cs
- ValueCollectionParameterReader.cs
- SizeChangedInfo.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- DataGridViewControlCollection.cs
- DirectoryRootQuery.cs
- MSG.cs
- RenderContext.cs
- BindingCollection.cs
- ImageList.cs
- SoapAttributeAttribute.cs
- Vector3D.cs
- WebPartCollection.cs
- BitmapMetadata.cs
- CompositeFontParser.cs
- BinaryMethodMessage.cs
- EntityViewGenerationAttribute.cs
- HasRunnableWorkflowEvent.cs
- KeyTime.cs
- TimeStampChecker.cs
- MethodImplAttribute.cs
- DigestTraceRecordHelper.cs
- ConfigurationManagerHelperFactory.cs
- InternalBufferOverflowException.cs
- securitycriticaldataformultiplegetandset.cs
- AuthStoreRoleProvider.cs
- BinaryParser.cs
- XmlParserContext.cs
- CompilerCollection.cs
- Form.cs
- Compiler.cs
- SchemaElementDecl.cs
- EntityProxyFactory.cs
- Serializer.cs
- StringCollection.cs
- TextBlock.cs
- SerializationInfoEnumerator.cs
- UserControlFileEditor.cs
- AffineTransform3D.cs
- BitmapEffectDrawingContextState.cs
- CollectionType.cs
- FullTextLine.cs
- RemoteWebConfigurationHost.cs
- BindingBase.cs
- RightsDocument.cs
- WebResourceAttribute.cs
- WmlPhoneCallAdapter.cs
- ReaderWriterLockWrapper.cs
- XmlChildNodes.cs
- ContainerParaClient.cs
- OrderByExpression.cs
- DataColumn.cs
- GetImportedCardRequest.cs
- ColumnMapCopier.cs
- InternalResources.cs
- BoundingRectTracker.cs
- UIElement.cs
- ContextConfiguration.cs
- GridViewColumnCollection.cs
- XPathPatternParser.cs
- SecureStringHasher.cs
- ToolStripOverflow.cs
- HttpModulesInstallComponent.cs
- SystemFonts.cs
- ViewStateException.cs
- MenuItem.cs
- PageCodeDomTreeGenerator.cs
- RowToFieldTransformer.cs
- OracleCommandBuilder.cs
- TextElementCollection.cs
- SmtpMail.cs
- TextRange.cs
- StrokeCollectionDefaultValueFactory.cs
- EraserBehavior.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- UInt32Storage.cs
- SharedConnectionWorkflowTransactionService.cs
- SlipBehavior.cs
- QueryCacheKey.cs
- TreeViewHitTestInfo.cs
- FileEnumerator.cs
- DictionaryBase.cs
- ComponentEditorForm.cs
- DesignerDataTableBase.cs
- TreeNodeBinding.cs
- BlobPersonalizationState.cs