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
- InstalledVoice.cs
- MemoryFailPoint.cs
- EditBehavior.cs
- NavigationEventArgs.cs
- ControlIdConverter.cs
- AssociationType.cs
- COM2TypeInfoProcessor.cs
- BufferBuilder.cs
- AxHostDesigner.cs
- EntityObject.cs
- AnnotationService.cs
- InvokeGenerator.cs
- HostVisual.cs
- BufferModesCollection.cs
- DecoderFallback.cs
- SeekStoryboard.cs
- DataGridViewHitTestInfo.cs
- CqlIdentifiers.cs
- AttachInfo.cs
- IntPtr.cs
- DateTimeHelper.cs
- SamlSubject.cs
- PageCodeDomTreeGenerator.cs
- QilScopedVisitor.cs
- NeutralResourcesLanguageAttribute.cs
- WebServiceParameterData.cs
- DataGridViewCellValidatingEventArgs.cs
- ClientConfigurationHost.cs
- PopupRoot.cs
- Delegate.cs
- WebPartDescriptionCollection.cs
- xamlnodes.cs
- StringFunctions.cs
- SchemaMapping.cs
- HideDisabledControlAdapter.cs
- PageCatalogPartDesigner.cs
- TemplateControlParser.cs
- Merger.cs
- Compiler.cs
- SmiRecordBuffer.cs
- SimpleHandlerFactory.cs
- formatter.cs
- ConfigXmlAttribute.cs
- ListControlActionList.cs
- ExecutionEngineException.cs
- Converter.cs
- XhtmlBasicLabelAdapter.cs
- ByteConverter.cs
- SemanticTag.cs
- BulletChrome.cs
- SoapFault.cs
- XmlSchemaRedefine.cs
- ObjectIDGenerator.cs
- EntityTypeEmitter.cs
- DrawingContextDrawingContextWalker.cs
- DeviceContexts.cs
- DesigntimeLicenseContextSerializer.cs
- KeyboardEventArgs.cs
- MenuItem.cs
- UnmanagedBitmapWrapper.cs
- MasterPageParser.cs
- ADRoleFactory.cs
- ColumnCollection.cs
- FloaterBaseParagraph.cs
- ConfigurationElementCollection.cs
- SoapReflectionImporter.cs
- UriTemplateMatchException.cs
- PaperSize.cs
- Configuration.cs
- NonClientArea.cs
- LineVisual.cs
- VariantWrapper.cs
- SQLResource.cs
- Control.cs
- FlowLayout.cs
- streamingZipPartStream.cs
- OutputCacheModule.cs
- MessageSecurityException.cs
- embossbitmapeffect.cs
- GridViewColumnHeaderAutomationPeer.cs
- LazyLoadBehavior.cs
- MailMessageEventArgs.cs
- ScriptingProfileServiceSection.cs
- ProcessStartInfo.cs
- DocumentPageViewAutomationPeer.cs
- InternalSafeNativeMethods.cs
- IImplicitResourceProvider.cs
- MD5CryptoServiceProvider.cs
- ToolZone.cs
- WorkerProcess.cs
- FormViewRow.cs
- BackgroundFormatInfo.cs
- WebRequestModuleElementCollection.cs
- ExpressionNode.cs
- CompilerInfo.cs
- SamlSecurityToken.cs
- SqlFactory.cs
- LiteralText.cs
- FontStretchConverter.cs
- ExpressionHelper.cs