Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / 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
- Asn1Utilities.cs
- SqlStream.cs
- PropertyMetadata.cs
- BackStopAuthenticationModule.cs
- RightsController.cs
- Merger.cs
- ActivationArguments.cs
- HMACMD5.cs
- OperationCanceledException.cs
- UnsafeNativeMethods.cs
- FormParameter.cs
- Pen.cs
- EdmSchemaError.cs
- TrimSurroundingWhitespaceAttribute.cs
- ExtenderProviderService.cs
- DesignerAttributeInfo.cs
- PageStatePersister.cs
- TypeDependencyAttribute.cs
- ApplicationHost.cs
- SqlWebEventProvider.cs
- TranslateTransform3D.cs
- ConditionCollection.cs
- SettingsBindableAttribute.cs
- TextDpi.cs
- AnimationLayer.cs
- MouseEvent.cs
- StrokeSerializer.cs
- UseLicense.cs
- WebBrowsableAttribute.cs
- FontInfo.cs
- DataGridViewAccessibleObject.cs
- ErrorItem.cs
- ComboBoxAutomationPeer.cs
- SecurityTokenAuthenticator.cs
- Button.cs
- TypeConverterMarkupExtension.cs
- UpdateEventArgs.cs
- TextHidden.cs
- Int16KeyFrameCollection.cs
- DataListItemCollection.cs
- DataTableTypeConverter.cs
- AuthStoreRoleProvider.cs
- PaperSize.cs
- ExtensionWindow.cs
- XmlSchemaSimpleContent.cs
- HijriCalendar.cs
- SrgsElementList.cs
- CodeThrowExceptionStatement.cs
- AuthenticationConfig.cs
- AppSettingsExpressionBuilder.cs
- DesignerSelectionListAdapter.cs
- BitmapEffectvisualstate.cs
- DesignerDataView.cs
- InputScopeManager.cs
- DesignTimeVisibleAttribute.cs
- AsyncContentLoadedEventArgs.cs
- TextPatternIdentifiers.cs
- RadioButtonPopupAdapter.cs
- CanonicalXml.cs
- Underline.cs
- DataGridViewLinkCell.cs
- SystemResources.cs
- AssemblyHash.cs
- UpdateException.cs
- SmtpMail.cs
- PropertyChangingEventArgs.cs
- BitmapInitialize.cs
- VirtualPathUtility.cs
- FillRuleValidation.cs
- PropertyChangingEventArgs.cs
- WebHeaderCollection.cs
- QueryCacheEntry.cs
- TrackingQueryElement.cs
- EventLogPermissionEntry.cs
- SqlBuilder.cs
- AdornerDecorator.cs
- ColorConvertedBitmap.cs
- ContentTextAutomationPeer.cs
- VarInfo.cs
- DataSourceBooleanViewSchemaConverter.cs
- SplineKeyFrames.cs
- TypeListConverter.cs
- QilXmlWriter.cs
- IListConverters.cs
- WinEventWrap.cs
- TreeNodeConverter.cs
- XmlWriterSettings.cs
- JavascriptXmlWriterWrapper.cs
- ImageClickEventArgs.cs
- AssociativeAggregationOperator.cs
- PrivilegeNotHeldException.cs
- HttpContext.cs
- XsltSettings.cs
- WebPartCatalogCloseVerb.cs
- XmlSerializerAssemblyAttribute.cs
- DataServices.cs
- NamespaceQuery.cs
- DropTarget.cs
- ParameterToken.cs
- DetailsViewDeletedEventArgs.cs