Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Sys / 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;
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XamlTypeWithExplicitNamespace.cs
- SystemInfo.cs
- PrimitiveType.cs
- ToolStripRendererSwitcher.cs
- AutomationFocusChangedEventArgs.cs
- SecurityAppliedMessage.cs
- _UncName.cs
- DefaultExpressionVisitor.cs
- QilScopedVisitor.cs
- ColumnWidthChangedEvent.cs
- AuthenticationModuleElement.cs
- ExitEventArgs.cs
- BaseUriHelper.cs
- ErrorHandler.cs
- SecurityContextKeyIdentifierClause.cs
- ParserStreamGeometryContext.cs
- SimpleApplicationHost.cs
- Bits.cs
- AutomationProperties.cs
- CapabilitiesAssignment.cs
- ObfuscationAttribute.cs
- TextBoxLine.cs
- DocumentDesigner.cs
- KoreanLunisolarCalendar.cs
- ChildChangedEventArgs.cs
- FamilyMap.cs
- ListBoxAutomationPeer.cs
- IUnknownConstantAttribute.cs
- TextEffectResolver.cs
- SQLGuidStorage.cs
- Rectangle.cs
- TextTreeObjectNode.cs
- NaturalLanguageHyphenator.cs
- MetadataSource.cs
- NumberEdit.cs
- SafeBuffer.cs
- ValueType.cs
- ValidationService.cs
- SpeechRecognizer.cs
- EnlistmentTraceIdentifier.cs
- WeakReferenceEnumerator.cs
- ListComponentEditorPage.cs
- RowVisual.cs
- PersistenceProvider.cs
- ApplicationInterop.cs
- FormViewModeEventArgs.cs
- DataGridViewComboBoxEditingControl.cs
- DataServiceEntityAttribute.cs
- DateTimePicker.cs
- AddressAccessDeniedException.cs
- GridViewRowEventArgs.cs
- JavaScriptString.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ImmutableObjectAttribute.cs
- Win32MouseDevice.cs
- DataGridColumnFloatingHeader.cs
- RequestCacheEntry.cs
- FontNamesConverter.cs
- ThicknessAnimation.cs
- QueryUtil.cs
- BindingWorker.cs
- TextBoxBase.cs
- DWriteFactory.cs
- UnsafeNativeMethodsPenimc.cs
- TimeSpan.cs
- AnnotationDocumentPaginator.cs
- AssociationTypeEmitter.cs
- SQLChars.cs
- Pen.cs
- CheckBoxStandardAdapter.cs
- IndexerNameAttribute.cs
- EncoderNLS.cs
- Timer.cs
- GroupBox.cs
- QueryPageSettingsEventArgs.cs
- ETagAttribute.cs
- PeerContact.cs
- MaxValueConverter.cs
- CaseInsensitiveHashCodeProvider.cs
- Transform3DGroup.cs
- DesignerRegion.cs
- TypedServiceOperationListItem.cs
- RoutingSection.cs
- AnimatedTypeHelpers.cs
- UserControlParser.cs
- IsolatedStorageFile.cs
- ExpressionEditor.cs
- ContractsBCL.cs
- PointKeyFrameCollection.cs
- FirewallWrapper.cs
- PropertyGeneratedEventArgs.cs
- SizeF.cs
- ProviderConnectionPointCollection.cs
- SchemaEntity.cs
- ChannelServices.cs
- DependencyObjectProvider.cs
- DBCSCodePageEncoding.cs
- PrivilegedConfigurationManager.cs
- NamespaceList.cs
- NameSpaceExtractor.cs