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
- TypeBinaryExpression.cs
- DataRowComparer.cs
- XPathDocument.cs
- ExpressionsCollectionEditor.cs
- TabControlEvent.cs
- LowerCaseStringConverter.cs
- PropertyPushdownHelper.cs
- ScanQueryOperator.cs
- ProgressBarRenderer.cs
- ComAwareEventInfo.cs
- ReferenceService.cs
- ValidationSummary.cs
- MetadataCacheItem.cs
- XmlSchemaObject.cs
- ProfileSection.cs
- PageAsyncTask.cs
- MarshalByRefObject.cs
- TreeViewItem.cs
- TrimSurroundingWhitespaceAttribute.cs
- DynamicMethod.cs
- MarkupCompiler.cs
- PeerCustomResolverSettings.cs
- webeventbuffer.cs
- SelectionPattern.cs
- ReliabilityContractAttribute.cs
- SqlConnectionManager.cs
- BevelBitmapEffect.cs
- ScopeElementCollection.cs
- PathSegmentCollection.cs
- GridViewAutoFormat.cs
- RayMeshGeometry3DHitTestResult.cs
- DataGridPagerStyle.cs
- AuthenticatedStream.cs
- DescendentsWalker.cs
- SortDescriptionCollection.cs
- Rotation3DAnimation.cs
- DynamicPropertyReader.cs
- WindowInteractionStateTracker.cs
- PerformanceCounterLib.cs
- PersistenceTypeAttribute.cs
- UrlPath.cs
- SqlDependency.cs
- PaperSource.cs
- LayoutEvent.cs
- IsolatedStoragePermission.cs
- LostFocusEventManager.cs
- ToolStripGripRenderEventArgs.cs
- PropertyTabChangedEvent.cs
- ExpressionBuilder.cs
- ShimAsPublicXamlType.cs
- TableItemStyle.cs
- CopyEncoder.cs
- SlotInfo.cs
- AjaxFrameworkAssemblyAttribute.cs
- XmlEncodedRawTextWriter.cs
- TrackingLocationCollection.cs
- Size.cs
- SimpleWorkerRequest.cs
- TextElementEnumerator.cs
- ClientEventManager.cs
- EnumerableWrapperWeakToStrong.cs
- UnmanagedHandle.cs
- DataGridViewColumnTypeEditor.cs
- PropertyDescriptorComparer.cs
- ByteStack.cs
- DesignerOptionService.cs
- PageStatePersister.cs
- DataServiceQueryOfT.cs
- SmtpMail.cs
- LabelTarget.cs
- SingleTagSectionHandler.cs
- PrimitiveXmlSerializers.cs
- DbProviderFactoriesConfigurationHandler.cs
- ProcessThreadCollection.cs
- ActivationArguments.cs
- AssertFilter.cs
- SimpleBitVector32.cs
- httpstaticobjectscollection.cs
- String.cs
- IndexOutOfRangeException.cs
- TabControlDesigner.cs
- Char.cs
- ArrayConverter.cs
- XmlImplementation.cs
- _BasicClient.cs
- GeneralTransform3D.cs
- HttpApplicationFactory.cs
- ProcessRequestArgs.cs
- BinaryParser.cs
- CheckedListBox.cs
- IisTraceWebEventProvider.cs
- ViewUtilities.cs
- CacheMode.cs
- ProviderMetadataCachedInformation.cs
- SpotLight.cs
- FixedSOMImage.cs
- StaticFileHandler.cs
- Identifier.cs
- GenerateTemporaryTargetAssembly.cs
- DynamicDiscoveryDocument.cs