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
- ProcessHostFactoryHelper.cs
- DesignerTransactionCloseEvent.cs
- XsdDateTime.cs
- AspProxy.cs
- _emptywebproxy.cs
- ReadOnlyDataSource.cs
- Tokenizer.cs
- IssuanceTokenProviderState.cs
- InitializingNewItemEventArgs.cs
- ModelEditingScope.cs
- XsdDuration.cs
- TextEditorContextMenu.cs
- PathBox.cs
- InstallerTypeAttribute.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- DataGridViewColumnCollectionEditor.cs
- FlatButtonAppearance.cs
- ProtocolsConfiguration.cs
- InlineCollection.cs
- PropertyValueChangedEvent.cs
- EmbeddedMailObjectsCollection.cs
- LineInfo.cs
- EncoderParameter.cs
- TagPrefixInfo.cs
- IDQuery.cs
- SafeNativeMethods.cs
- SqlDataSourceQueryEditor.cs
- HandledMouseEvent.cs
- WorkflowWebHostingModule.cs
- ImageList.cs
- GenericIdentity.cs
- ThrowHelper.cs
- XmlDataDocument.cs
- AlphabeticalEnumConverter.cs
- PropertyChangingEventArgs.cs
- Line.cs
- ActivityAction.cs
- HuffCodec.cs
- XmlDocument.cs
- ListViewPagedDataSource.cs
- PerspectiveCamera.cs
- SqlCrossApplyToCrossJoin.cs
- GroupDescription.cs
- OleDbReferenceCollection.cs
- DeploymentExceptionMapper.cs
- EmptyCollection.cs
- XmlSiteMapProvider.cs
- BindingElementCollection.cs
- ActiveXHelper.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- SecurityElement.cs
- SmtpFailedRecipientsException.cs
- InvalidOleVariantTypeException.cs
- SafeBitVector32.cs
- GlyphRunDrawing.cs
- UDPClient.cs
- XmlHierarchyData.cs
- EventEntry.cs
- TimeSpanStorage.cs
- DBCommandBuilder.cs
- ToolBarDesigner.cs
- WeakEventTable.cs
- ToolStripDropTargetManager.cs
- Attributes.cs
- CurrentChangingEventArgs.cs
- DoubleKeyFrameCollection.cs
- LinkedDataMemberFieldEditor.cs
- XmlCodeExporter.cs
- GPPOINT.cs
- LeaseManager.cs
- UdpDiscoveryEndpoint.cs
- XPathDocumentIterator.cs
- BitmapEffectState.cs
- ActivityBindForm.cs
- HttpRuntimeSection.cs
- ViewStateException.cs
- CollectionType.cs
- Visual3D.cs
- WebPartHeaderCloseVerb.cs
- SolidBrush.cs
- URLAttribute.cs
- DataAdapter.cs
- GeneralTransform2DTo3D.cs
- HtmlInputReset.cs
- ActivityTypeResolver.xaml.cs
- CqlErrorHelper.cs
- ActionNotSupportedException.cs
- TemplatePropertyEntry.cs
- ParameterModifier.cs
- OptimisticConcurrencyException.cs
- InputBuffer.cs
- ServicePointManagerElement.cs
- TargetException.cs
- SevenBitStream.cs
- DataGridViewCellCollection.cs
- SqlDependency.cs
- ManagementClass.cs
- DecimalStorage.cs
- FileDialogPermission.cs
- XmlUtil.cs