Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Configuration / System / Configuration / ConfigXmlAttribute.cs / 1 / ConfigXmlAttribute.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 ConfigXmlAttribute : XmlAttribute, IConfigErrorInfo {
int _line;
string _filename;
public ConfigXmlAttribute( string filename, int line, string prefix, string localName, string namespaceUri, XmlDocument doc )
: base( prefix, localName, namespaceUri, 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);
ConfigXmlAttribute clone = cloneNode as ConfigXmlAttribute;
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 ConfigXmlAttribute : XmlAttribute, IConfigErrorInfo {
int _line;
string _filename;
public ConfigXmlAttribute( string filename, int line, string prefix, string localName, string namespaceUri, XmlDocument doc )
: base( prefix, localName, namespaceUri, 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);
ConfigXmlAttribute clone = cloneNode as ConfigXmlAttribute;
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
- GridErrorDlg.cs
- CallbackValidator.cs
- WebPartDisplayMode.cs
- CalendarModeChangedEventArgs.cs
- DataContractSerializerSection.cs
- TextTreeTextNode.cs
- Page.cs
- WebUtil.cs
- PersistChildrenAttribute.cs
- PersonalizationProvider.cs
- PrimaryKeyTypeConverter.cs
- TextRangeEditTables.cs
- SqlProviderManifest.cs
- IgnoreDataMemberAttribute.cs
- XmlSerializerAssemblyAttribute.cs
- PopupRoot.cs
- TrackingCondition.cs
- PageTrueTypeFont.cs
- ExtendedPropertyCollection.cs
- StsCommunicationException.cs
- JavaScriptObjectDeserializer.cs
- SqlException.cs
- SystemException.cs
- xmlsaver.cs
- StringArrayConverter.cs
- NavigationProperty.cs
- RadioButtonStandardAdapter.cs
- MasterPageBuildProvider.cs
- HatchBrush.cs
- TextDecorationLocationValidation.cs
- OdbcConnectionOpen.cs
- ImageListDesigner.cs
- WebPartTransformerCollection.cs
- TextRunCacheImp.cs
- SubstitutionDesigner.cs
- ObjectHandle.cs
- OuterGlowBitmapEffect.cs
- SponsorHelper.cs
- TrackBar.cs
- BamlResourceContent.cs
- XpsSerializationManager.cs
- Int32AnimationUsingKeyFrames.cs
- TextParaLineResult.cs
- CombinedGeometry.cs
- ThreadAttributes.cs
- XslTransform.cs
- SQLUtility.cs
- TimestampInformation.cs
- formatter.cs
- UnsafeNetInfoNativeMethods.cs
- BinaryQueryOperator.cs
- ImmutableObjectAttribute.cs
- MachineKey.cs
- KoreanLunisolarCalendar.cs
- DocumentScope.cs
- TraceFilter.cs
- TaskFormBase.cs
- DuplicateDetector.cs
- XpsFontSerializationService.cs
- TypefaceCollection.cs
- OdbcConnectionHandle.cs
- SByte.cs
- SudsParser.cs
- SystemEvents.cs
- ElementsClipboardData.cs
- Transform3D.cs
- ToolStripDropDownClosingEventArgs.cs
- WriterOutput.cs
- XmlSchemaAppInfo.cs
- HttpListenerElement.cs
- SQLBinary.cs
- VariableQuery.cs
- CodeTypeDeclarationCollection.cs
- StateMachineSubscriptionManager.cs
- MainMenu.cs
- ImpersonateTokenRef.cs
- ArrayElementGridEntry.cs
- CatalogPartCollection.cs
- WebPartMenuStyle.cs
- ReferencedType.cs
- DeobfuscatingStream.cs
- DataServiceQueryOfT.cs
- NamedPipeConnectionPoolSettings.cs
- XmlRawWriterWrapper.cs
- HttpPostClientProtocol.cs
- ChannelParameterCollection.cs
- WebPartRestoreVerb.cs
- HtmlImage.cs
- EntityDataSourceColumn.cs
- PartitionedStreamMerger.cs
- KnownTypes.cs
- HyperLinkStyle.cs
- DataGridDesigner.cs
- Int32.cs
- sqlmetadatafactory.cs
- XmlnsDefinitionAttribute.cs
- SystemIPInterfaceProperties.cs
- DragAssistanceManager.cs
- Internal.cs
- FrameDimension.cs