Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Sys / 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
- SchemaMerger.cs
- HeaderFilter.cs
- ShutDownListener.cs
- HitTestWithGeometryDrawingContextWalker.cs
- MenuItem.cs
- FormsAuthenticationUser.cs
- SqlCacheDependencyDatabaseCollection.cs
- QueryStringParameter.cs
- StylusEditingBehavior.cs
- Baml2006KeyRecord.cs
- AmbiguousMatchException.cs
- controlskin.cs
- ZeroOpNode.cs
- AlgoModule.cs
- XmlSchemaAttributeGroupRef.cs
- StdValidatorsAndConverters.cs
- ShadowGlyph.cs
- CookieParameter.cs
- SweepDirectionValidation.cs
- ApplicationException.cs
- WorkflowHostingEndpoint.cs
- ResXResourceReader.cs
- TemplateControl.cs
- StreamUpgradeInitiator.cs
- RowBinding.cs
- BStrWrapper.cs
- VerticalAlignConverter.cs
- MonitoringDescriptionAttribute.cs
- RepeaterItem.cs
- SmtpNegotiateAuthenticationModule.cs
- Oid.cs
- HttpCacheVaryByContentEncodings.cs
- RuleElement.cs
- TableItemPatternIdentifiers.cs
- SettingsSection.cs
- DelayedRegex.cs
- coordinatorfactory.cs
- LineServices.cs
- CompositeTypefaceMetrics.cs
- PermissionToken.cs
- MultilineStringConverter.cs
- DataExpression.cs
- HtmlInputReset.cs
- MachineKeyValidationConverter.cs
- SqlInternalConnectionSmi.cs
- X509SecurityTokenAuthenticator.cs
- SoapObjectWriter.cs
- DmlSqlGenerator.cs
- SimpleTypeResolver.cs
- x509store.cs
- DefaultValueAttribute.cs
- FontInfo.cs
- EditorBrowsableAttribute.cs
- IOThreadScheduler.cs
- XmlnsDefinitionAttribute.cs
- TypeBuilder.cs
- PropertyValueUIItem.cs
- ProcessHostConfigUtils.cs
- CodePrimitiveExpression.cs
- XPathArrayIterator.cs
- Decoder.cs
- DupHandleConnectionReader.cs
- VirtualPathUtility.cs
- EntityCommandCompilationException.cs
- RepeatEnumerable.cs
- LocalTransaction.cs
- SqlDataSourceCommandEventArgs.cs
- GeneratedCodeAttribute.cs
- SystemInfo.cs
- ObjectTag.cs
- WCFServiceClientProxyGenerator.cs
- DataKey.cs
- SecurityPolicySection.cs
- NotifyParentPropertyAttribute.cs
- Preprocessor.cs
- CqlLexerHelpers.cs
- SystemTcpStatistics.cs
- CursorConverter.cs
- ControlEvent.cs
- DataRecordInternal.cs
- SectionVisual.cs
- PageAsyncTask.cs
- OdbcConnectionFactory.cs
- DecoderNLS.cs
- TextWriter.cs
- ObjectViewFactory.cs
- JournalEntryListConverter.cs
- RegexWorker.cs
- LocalBuilder.cs
- TagMapCollection.cs
- BaseTypeViewSchema.cs
- SemaphoreSecurity.cs
- TrackingMemoryStreamFactory.cs
- GeometryDrawing.cs
- TCEAdapterGenerator.cs
- XmlNamespaceMapping.cs
- OleDbReferenceCollection.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- IpcServerChannel.cs
- TextRunTypographyProperties.cs