Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / Configuration / ConfigXmlAttribute.cs / 1305376 / 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
- DoubleCollectionValueSerializer.cs
- RadioButtonBaseAdapter.cs
- TypeSystem.cs
- XmlUrlResolver.cs
- BidOverLoads.cs
- X509AsymmetricSecurityKey.cs
- LinearQuaternionKeyFrame.cs
- XmlUtil.cs
- MessageQueueAccessControlEntry.cs
- ColorBlend.cs
- BaseComponentEditor.cs
- RSAPKCS1SignatureDeformatter.cs
- SqlExpander.cs
- sqlinternaltransaction.cs
- ExpressionBindingCollection.cs
- Merger.cs
- ProxyBuilder.cs
- Mutex.cs
- ObjectIDGenerator.cs
- DescendentsWalkerBase.cs
- SplineKeyFrames.cs
- SimpleColumnProvider.cs
- IERequestCache.cs
- ToggleButton.cs
- CommentEmitter.cs
- FormsAuthenticationUser.cs
- OpenTypeCommon.cs
- HttpCapabilitiesBase.cs
- DBSchemaTable.cs
- WebConfigurationHostFileChange.cs
- BridgeDataReader.cs
- XamlInt32CollectionSerializer.cs
- Polygon.cs
- HandlerBase.cs
- TileBrush.cs
- UdpMessageProperty.cs
- CodeThrowExceptionStatement.cs
- StickyNoteHelper.cs
- TransformCollection.cs
- MemoryMappedFile.cs
- InternalControlCollection.cs
- SqlFormatter.cs
- WindowsMenu.cs
- TransformerConfigurationWizardBase.cs
- CallSite.cs
- DesignerObjectListAdapter.cs
- ComAwareEventInfo.cs
- JulianCalendar.cs
- Panel.cs
- EdmComplexPropertyAttribute.cs
- KeyMatchBuilder.cs
- TransformConverter.cs
- HelpProvider.cs
- SolidBrush.cs
- SqlLiftIndependentRowExpressions.cs
- PanelStyle.cs
- DataFormats.cs
- GenericIdentity.cs
- ComboBoxRenderer.cs
- SqlResolver.cs
- DateTimeFormatInfoScanner.cs
- Stack.cs
- OleDbInfoMessageEvent.cs
- BasePattern.cs
- RayHitTestParameters.cs
- KoreanCalendar.cs
- wgx_commands.cs
- TextTreeTextElementNode.cs
- PathGeometry.cs
- __TransparentProxy.cs
- ClassDataContract.cs
- MouseGesture.cs
- SqlTransaction.cs
- XmlSchemaInferenceException.cs
- Cell.cs
- ChangeConflicts.cs
- SuppressMergeCheckAttribute.cs
- PrimitiveSchema.cs
- DesignerDataTable.cs
- SqlClientWrapperSmiStream.cs
- DataGridViewRowHeaderCell.cs
- SchemaImporterExtensionElement.cs
- SQLSingleStorage.cs
- DynamicResourceExtension.cs
- JoinTreeNode.cs
- PersistenceTypeAttribute.cs
- ControlParameter.cs
- _ProxyRegBlob.cs
- TimeStampChecker.cs
- NativeMethods.cs
- PageAdapter.cs
- DynamicResourceExtensionConverter.cs
- Pen.cs
- TypeConverterAttribute.cs
- BookmarkScope.cs
- DateTimePicker.cs
- MexNamedPipeBindingElement.cs
- CodeDefaultValueExpression.cs
- UriSection.cs
- ManualWorkflowSchedulerService.cs