Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Configuration / System / Configuration / ConfigXmlText.cs / 1 / 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
- ColorTranslator.cs
- Vector.cs
- ActivityTypeDesigner.xaml.cs
- SizeChangedInfo.cs
- MachineKeyConverter.cs
- diagnosticsswitches.cs
- BufferManager.cs
- TimelineClockCollection.cs
- HttpRequestTraceRecord.cs
- SmtpSection.cs
- UserNameSecurityTokenProvider.cs
- ResourceReferenceKeyNotFoundException.cs
- SqlDependencyUtils.cs
- BinaryUtilClasses.cs
- TransactionInformation.cs
- ManagementEventWatcher.cs
- MessageBox.cs
- MetaTableHelper.cs
- OdbcConnectionString.cs
- CredentialSelector.cs
- MetadataArtifactLoaderCompositeResource.cs
- SoapCodeExporter.cs
- MetadataItemCollectionFactory.cs
- DomainLiteralReader.cs
- _WinHttpWebProxyDataBuilder.cs
- DataGridViewLayoutData.cs
- DataError.cs
- PackWebRequest.cs
- RegexRunner.cs
- MultitargetUtil.cs
- PeerServiceMessageContracts.cs
- NetMsmqSecurityElement.cs
- EmbeddedMailObjectCollectionEditor.cs
- SortDescription.cs
- MTConfigUtil.cs
- SspiSecurityTokenProvider.cs
- ComponentDispatcherThread.cs
- FontSizeConverter.cs
- HttpAsyncResult.cs
- TraceXPathNavigator.cs
- XmlSchemaExternal.cs
- x509store.cs
- FolderNameEditor.cs
- StringSource.cs
- HostingMessageProperty.cs
- PrintDialog.cs
- CompositionAdorner.cs
- TraceHandler.cs
- XmlEncodedRawTextWriter.cs
- wgx_render.cs
- ChannelPool.cs
- KeyConstraint.cs
- WindowsListViewGroupHelper.cs
- CharEnumerator.cs
- Module.cs
- SocketException.cs
- ReadOnlyDictionary.cs
- DocobjHost.cs
- TextParaLineResult.cs
- ClrPerspective.cs
- PiiTraceSource.cs
- TextSimpleMarkerProperties.cs
- MarkupExtensionParser.cs
- ObjectCloneHelper.cs
- CodeDefaultValueExpression.cs
- StreamBodyWriter.cs
- BindingMAnagerBase.cs
- RuntimeEnvironment.cs
- OwnerDrawPropertyBag.cs
- CaseStatement.cs
- AssemblyFilter.cs
- GridItem.cs
- ReversePositionQuery.cs
- Cursors.cs
- SystemFonts.cs
- CellParagraph.cs
- InlineObject.cs
- StyleCollection.cs
- PropertyGeneratedEventArgs.cs
- StaticSiteMapProvider.cs
- _ChunkParse.cs
- AuthenticatedStream.cs
- JournalEntryStack.cs
- DataGridViewHitTestInfo.cs
- Validator.cs
- MappingItemCollection.cs
- TemplatePropertyEntry.cs
- DataMember.cs
- PrimaryKeyTypeConverter.cs
- GradientBrush.cs
- remotingproxy.cs
- Rotation3D.cs
- CommonGetThemePartSize.cs
- ParameterCollection.cs
- shaper.cs
- BuildDependencySet.cs
- SspiWrapper.cs
- Viewport2DVisual3D.cs
- PageAsyncTaskManager.cs
- QueryPrefixOp.cs