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
- TemplateControlCodeDomTreeGenerator.cs
- CodeParameterDeclarationExpressionCollection.cs
- Canvas.cs
- Deflater.cs
- SqlDataSourceSelectingEventArgs.cs
- X500Name.cs
- Internal.cs
- PageTheme.cs
- CqlErrorHelper.cs
- WebContext.cs
- CoTaskMemSafeHandle.cs
- PrintDialog.cs
- DesignerProperties.cs
- XPathNavigatorReader.cs
- NonceToken.cs
- SourceChangedEventArgs.cs
- MruCache.cs
- listviewsubitemcollectioneditor.cs
- ResourceContainer.cs
- Memoizer.cs
- ErrorRuntimeConfig.cs
- BamlTreeNode.cs
- EpmTargetPathSegment.cs
- ChildTable.cs
- AuthenticationConfig.cs
- UMPAttributes.cs
- COMException.cs
- TargetControlTypeCache.cs
- XmlSchemaComplexContent.cs
- BuildProviderUtils.cs
- GeometryDrawing.cs
- CurrencyWrapper.cs
- odbcmetadatafactory.cs
- ToolStripDesigner.cs
- TraceInternal.cs
- UIElementPropertyUndoUnit.cs
- Int32Rect.cs
- SHA256.cs
- ResourceDescriptionAttribute.cs
- Italic.cs
- WebPartCatalogCloseVerb.cs
- PackageDocument.cs
- DebugView.cs
- ZoneButton.cs
- FrameworkContentElement.cs
- FunctionQuery.cs
- NativeMethods.cs
- RegexMatchCollection.cs
- Vector3DValueSerializer.cs
- HttpCachePolicyElement.cs
- TypeNameHelper.cs
- TextSpanModifier.cs
- XmlNamespaceManager.cs
- DataSourceHelper.cs
- OpenTypeLayout.cs
- XmlWrappingReader.cs
- DataGridView.cs
- ServiceDescriptionData.cs
- XmlReflectionMember.cs
- DiagnosticsConfiguration.cs
- CategoryEditor.cs
- XpsPackagingPolicy.cs
- MetadataSource.cs
- FocusWithinProperty.cs
- linebase.cs
- Unit.cs
- KeyPressEvent.cs
- StoreItemCollection.Loader.cs
- BaseParaClient.cs
- StreamGeometry.cs
- RbTree.cs
- ProcessingInstructionAction.cs
- AssociationTypeEmitter.cs
- FaultFormatter.cs
- DataViewListener.cs
- WebPartTracker.cs
- ResXFileRef.cs
- mansign.cs
- AbstractSvcMapFileLoader.cs
- CodeTypeMemberCollection.cs
- Transform.cs
- FileSystemEventArgs.cs
- DoubleAnimationUsingKeyFrames.cs
- FieldToken.cs
- SHA384.cs
- SafeNativeMethods.cs
- EnumMember.cs
- HashAlgorithm.cs
- Compiler.cs
- DataFormat.cs
- ConstraintCollection.cs
- XPathDocumentIterator.cs
- JournalEntry.cs
- TaskExceptionHolder.cs
- WebPartConnectionsEventArgs.cs
- BrowserCapabilitiesFactory35.cs
- CodeDOMUtility.cs
- PowerStatus.cs
- DesignBindingPropertyDescriptor.cs
- FontFamily.cs