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
- DiagnosticsConfigurationHandler.cs
- IndentedWriter.cs
- NetPipeSection.cs
- serverconfig.cs
- QilUnary.cs
- DoubleCollection.cs
- WebControl.cs
- sqlinternaltransaction.cs
- UInt16Storage.cs
- DataRelationCollection.cs
- XPathDocument.cs
- SettingsProperty.cs
- WindowsListViewItemStartMenu.cs
- StylusDevice.cs
- RegexCode.cs
- SqlReorderer.cs
- BlurBitmapEffect.cs
- Attributes.cs
- SmtpAuthenticationManager.cs
- BooleanKeyFrameCollection.cs
- ProtocolInformationWriter.cs
- AuthorizationRule.cs
- ScaleTransform3D.cs
- CollectionEditorDialog.cs
- FileSystemWatcher.cs
- ImpersonateTokenRef.cs
- InvokePattern.cs
- ErasingStroke.cs
- ScriptServiceAttribute.cs
- DataStreams.cs
- CodeRegionDirective.cs
- CultureSpecificStringDictionary.cs
- RayMeshGeometry3DHitTestResult.cs
- ArraySet.cs
- xmlsaver.cs
- PermissionToken.cs
- HwndSourceKeyboardInputSite.cs
- NameValuePermission.cs
- CommandID.cs
- PerformanceCounterLib.cs
- UpdatePanelControlTrigger.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- TextEditorMouse.cs
- MemberAccessException.cs
- SmtpClient.cs
- X509ScopedServiceCertificateElement.cs
- GatewayDefinition.cs
- StrongNamePublicKeyBlob.cs
- WebPartEditorOkVerb.cs
- ReflectPropertyDescriptor.cs
- AccessedThroughPropertyAttribute.cs
- DoubleAnimationUsingKeyFrames.cs
- ListViewInsertionMark.cs
- EncoderFallback.cs
- ScriptMethodAttribute.cs
- cryptoapiTransform.cs
- InlineUIContainer.cs
- SvcFileManager.cs
- ListViewAutomationPeer.cs
- RequestCacheManager.cs
- UxThemeWrapper.cs
- HtmlTableRowCollection.cs
- HtmlEmptyTagControlBuilder.cs
- ImageListStreamer.cs
- DetailsViewCommandEventArgs.cs
- CallbackValidator.cs
- BinaryCommonClasses.cs
- DeclarativeExpressionConditionDeclaration.cs
- XmlSchemaProviderAttribute.cs
- HuffModule.cs
- TypeConverterHelper.cs
- DataContext.cs
- URIFormatException.cs
- ProfessionalColorTable.cs
- SegmentInfo.cs
- XsdCachingReader.cs
- AssemblyBuilder.cs
- SHA1.cs
- VisualTreeHelper.cs
- NameValuePermission.cs
- DataBoundControlAdapter.cs
- httpserverutility.cs
- WebBrowserEvent.cs
- ParameterToken.cs
- ControlParser.cs
- TextSelectionProcessor.cs
- DispatchChannelSink.cs
- RowUpdatedEventArgs.cs
- RegistryDataKey.cs
- ServiceBehaviorElementCollection.cs
- PromptStyle.cs
- HtmlWindowCollection.cs
- DelegateHelpers.Generated.cs
- ViewManager.cs
- HatchBrush.cs
- ClassHandlersStore.cs
- TagPrefixInfo.cs
- NativeMethodsCLR.cs
- RelationshipNavigation.cs
- TextRunCacheImp.cs