Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ConfigXmlCDataSection.cs / 1305376 / 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
- UserThread.cs
- MaskedTextBoxTextEditor.cs
- EmulateRecognizeCompletedEventArgs.cs
- Inflater.cs
- PackageDocument.cs
- HierarchicalDataTemplate.cs
- DoubleAnimation.cs
- CqlParserHelpers.cs
- SqlDataReader.cs
- Crypto.cs
- FileEnumerator.cs
- ProcessHostMapPath.cs
- SqlXmlStorage.cs
- HtmlElementEventArgs.cs
- Point3DCollectionConverter.cs
- PagesChangedEventArgs.cs
- FormatStringEditor.cs
- IisTraceListener.cs
- IImplicitResourceProvider.cs
- ByteStreamGeometryContext.cs
- XmlUtf8RawTextWriter.cs
- basecomparevalidator.cs
- RulePatternOps.cs
- AlignmentYValidation.cs
- _HelperAsyncResults.cs
- ToolBar.cs
- BitmapEffectState.cs
- ThemeDirectoryCompiler.cs
- DebugView.cs
- StatusBarPanel.cs
- ScriptControl.cs
- UriTemplateClientFormatter.cs
- RequestUriProcessor.cs
- OdbcEnvironmentHandle.cs
- WebPartZone.cs
- OdbcCommand.cs
- ToolStripItemBehavior.cs
- BitmapEncoder.cs
- HandleCollector.cs
- XmlWellformedWriter.cs
- RegisteredArrayDeclaration.cs
- ChainedAsyncResult.cs
- ReadOnlyKeyedCollection.cs
- TargetParameterCountException.cs
- DbProviderSpecificTypePropertyAttribute.cs
- BuildManagerHost.cs
- HMACSHA1.cs
- XmlValidatingReader.cs
- XmlCharacterData.cs
- externdll.cs
- HtmlInputImage.cs
- XmlWriter.cs
- FindSimilarActivitiesVerb.cs
- DesignColumn.cs
- XmlComment.cs
- ThicknessAnimationBase.cs
- GridViewActionList.cs
- ImageAnimator.cs
- RightsManagementProvider.cs
- PropertySet.cs
- _NegotiateClient.cs
- SqlDataReaderSmi.cs
- GenerateHelper.cs
- DomainLiteralReader.cs
- MDIWindowDialog.cs
- WebPartCloseVerb.cs
- Page.cs
- CancellationTokenSource.cs
- ResourceDescriptionAttribute.cs
- DbProviderFactory.cs
- BrowserTree.cs
- RIPEMD160Managed.cs
- UserMapPath.cs
- LogLogRecordEnumerator.cs
- TdsParserSafeHandles.cs
- LocalFileSettingsProvider.cs
- SmiGettersStream.cs
- WindowsImpersonationContext.cs
- Link.cs
- SecurityContext.cs
- StyleBamlRecordReader.cs
- UnsafeNativeMethodsCLR.cs
- WinInetCache.cs
- DataRelation.cs
- CodeIdentifiers.cs
- RectAnimationBase.cs
- ConfigXmlElement.cs
- XPathSingletonIterator.cs
- WmlPanelAdapter.cs
- DoubleKeyFrameCollection.cs
- QuaternionAnimationBase.cs
- CharUnicodeInfo.cs
- ValidationResult.cs
- RoleGroup.cs
- MetadataCacheItem.cs
- PerformanceCounterManager.cs
- LazyLoadBehavior.cs
- SystemResourceKey.cs
- DBDataPermission.cs
- SqlNodeAnnotation.cs