Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Configuration / System / Configuration / ConfigXmlCDataSection.cs / 1 / ConfigXmlCDataSection.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 ConfigXmlCDataSection : XmlCDataSection, IConfigErrorInfo {
int _line;
string _filename;
public ConfigXmlCDataSection( string filename, int line, string data, XmlDocument doc )
: base( data, 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);
ConfigXmlCDataSection clone = cloneNode as ConfigXmlCDataSection;
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 ConfigXmlCDataSection : XmlCDataSection, IConfigErrorInfo {
int _line;
string _filename;
public ConfigXmlCDataSection( string filename, int line, string data, XmlDocument doc )
: base( data, 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);
ConfigXmlCDataSection clone = cloneNode as ConfigXmlCDataSection;
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
- RegionInfo.cs
- DesignerActionItem.cs
- BadImageFormatException.cs
- BmpBitmapDecoder.cs
- NegotiateStream.cs
- TabRenderer.cs
- XXXInfos.cs
- TimeSpanMinutesConverter.cs
- ChangeConflicts.cs
- DbConnectionInternal.cs
- Span.cs
- OutputCacheProfile.cs
- AnnotationResource.cs
- NullToBooleanConverter.cs
- MultiPageTextView.cs
- ExternalFile.cs
- TrustSection.cs
- MimeTypePropertyAttribute.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- BinaryUtilClasses.cs
- FullTrustAssembly.cs
- EmptyQuery.cs
- TextEditorCopyPaste.cs
- SqlStatistics.cs
- httpserverutility.cs
- QEncodedStream.cs
- ToolBarButton.cs
- MetadataItemSerializer.cs
- VisualBrush.cs
- TextChangedEventArgs.cs
- OdbcReferenceCollection.cs
- IResourceProvider.cs
- ToolBar.cs
- WebPartZoneAutoFormat.cs
- PseudoWebRequest.cs
- WebBrowserPermission.cs
- BaseComponentEditor.cs
- WebPartVerbCollection.cs
- InArgumentConverter.cs
- QueryParameter.cs
- DataGridViewCellFormattingEventArgs.cs
- DispatcherOperation.cs
- MediaTimeline.cs
- CheckBoxAutomationPeer.cs
- EmissiveMaterial.cs
- CompositeKey.cs
- SafeViewOfFileHandle.cs
- SqlInfoMessageEvent.cs
- IntSecurity.cs
- ToolStripItemEventArgs.cs
- CodeCastExpression.cs
- SynchronizationContextHelper.cs
- _HeaderInfo.cs
- EntitySetBaseCollection.cs
- AttributeCollection.cs
- EmptyImpersonationContext.cs
- QilXmlReader.cs
- DecodeHelper.cs
- GridViewColumnHeader.cs
- EventLogEntryCollection.cs
- WebSysDefaultValueAttribute.cs
- Polygon.cs
- RegistryConfigurationProvider.cs
- peersecuritysettings.cs
- SrgsElementList.cs
- SrgsSubset.cs
- ValueUnavailableException.cs
- SafeEventHandle.cs
- RealProxy.cs
- PackageProperties.cs
- ProfileSettingsCollection.cs
- SemanticResolver.cs
- AccessibleObject.cs
- FormViewInsertedEventArgs.cs
- SourceFileInfo.cs
- SqlDataSource.cs
- PreApplicationStartMethodAttribute.cs
- XmlPreloadedResolver.cs
- TabControlDesigner.cs
- BitmapImage.cs
- ValueQuery.cs
- storepermission.cs
- DecoderNLS.cs
- TypeGeneratedEventArgs.cs
- MiniLockedBorderGlyph.cs
- LinkButton.cs
- RandomNumberGenerator.cs
- EdmComplexTypeAttribute.cs
- BindingListCollectionView.cs
- NativeMethods.cs
- IconHelper.cs
- EdmFunction.cs
- ReadOnlyHierarchicalDataSource.cs
- AttachedAnnotation.cs
- RemoteTokenFactory.cs
- ManagedIStream.cs
- TextModifier.cs
- EdmProviderManifest.cs
- TraceLog.cs
- DataControlFieldsEditor.cs