Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / Configuration / ConfigXmlText.cs / 1305376 / ConfigXmlText.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 ConfigXmlText : XmlText, IConfigErrorInfo {
int _line;
string _filename;
public ConfigXmlText( string filename, int line, string strData, XmlDocument doc )
: base( strData, 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);
ConfigXmlText clone = cloneNode as ConfigXmlText;
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 ConfigXmlText : XmlText, IConfigErrorInfo {
int _line;
string _filename;
public ConfigXmlText( string filename, int line, string strData, XmlDocument doc )
: base( strData, 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);
ConfigXmlText clone = cloneNode as ConfigXmlText;
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
- DesignerSerializerAttribute.cs
- DispatcherHooks.cs
- ObjectReaderCompiler.cs
- ZipFileInfoCollection.cs
- UnionExpr.cs
- BinaryMethodMessage.cs
- ScriptResourceHandler.cs
- SizeAnimationUsingKeyFrames.cs
- MemberPath.cs
- SingleTagSectionHandler.cs
- ProcessThread.cs
- AnimationStorage.cs
- WebException.cs
- OSEnvironmentHelper.cs
- SqlInternalConnection.cs
- TaiwanLunisolarCalendar.cs
- ExpressionEditorAttribute.cs
- SqlWorkflowInstanceStoreLock.cs
- PartitionResolver.cs
- ScriptingScriptResourceHandlerSection.cs
- PathNode.cs
- FontUnit.cs
- ProcessingInstructionAction.cs
- BrowserCapabilitiesCodeGenerator.cs
- ListViewUpdateEventArgs.cs
- SecurityState.cs
- x509store.cs
- SchemaCollectionPreprocessor.cs
- ObjectDataSourceDisposingEventArgs.cs
- dbdatarecord.cs
- DataSourceProvider.cs
- MinimizableAttributeTypeConverter.cs
- SqlDependency.cs
- XmlAtomicValue.cs
- DataKeyCollection.cs
- Html32TextWriter.cs
- DataProviderNameConverter.cs
- PlanCompilerUtil.cs
- CompleteWizardStep.cs
- MessageBox.cs
- OnOperation.cs
- XmlQualifiedNameTest.cs
- RenderDataDrawingContext.cs
- NavigationService.cs
- Formatter.cs
- XPathDocumentBuilder.cs
- DateTimeFormat.cs
- TagMapCollection.cs
- TagMapCollection.cs
- MimeBasePart.cs
- HtmlShim.cs
- CompilationUnit.cs
- BigInt.cs
- DescriptionAttribute.cs
- SingleConverter.cs
- DelegateHelpers.cs
- DefaultEvaluationContext.cs
- SettingsPropertyValueCollection.cs
- ListControl.cs
- PtsHelper.cs
- EditorAttribute.cs
- FactoryGenerator.cs
- CommonProperties.cs
- KeyboardNavigation.cs
- OuterGlowBitmapEffect.cs
- ToolStripRenderEventArgs.cs
- ColorMatrix.cs
- PropertyGroupDescription.cs
- UrlPath.cs
- TabletDevice.cs
- HealthMonitoringSection.cs
- ClientEventManager.cs
- _HeaderInfoTable.cs
- UnhandledExceptionEventArgs.cs
- CatchBlock.cs
- XmlDictionary.cs
- DataTableExtensions.cs
- DesignConnection.cs
- XsltConvert.cs
- TextFormatterImp.cs
- AttributeData.cs
- ISFTagAndGuidCache.cs
- CreateUserWizardStep.cs
- ConnectionConsumerAttribute.cs
- RenderData.cs
- SecurityState.cs
- HtmlSelect.cs
- SplitContainer.cs
- FlowDocumentView.cs
- FixedSchema.cs
- TypeDescriptor.cs
- X509Extension.cs
- XPathNavigator.cs
- ExtendedPropertyDescriptor.cs
- DropSource.cs
- XmlLanguage.cs
- ResXResourceReader.cs
- WebBrowserSiteBase.cs
- Size3DValueSerializer.cs
- SocketManager.cs