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
- GregorianCalendar.cs
- AttributeUsageAttribute.cs
- WebPartMenuStyle.cs
- CodeLinePragma.cs
- XmlNodeList.cs
- HostedElements.cs
- DependencyObjectPropertyDescriptor.cs
- StylusPointCollection.cs
- QueuedDeliveryRequirementsMode.cs
- DataRowView.cs
- XmlExtensionFunction.cs
- TraceLevelStore.cs
- SqlBinder.cs
- SaveFileDialogDesigner.cs
- RangeBase.cs
- WMICapabilities.cs
- ColorBlend.cs
- ConfigurationManagerInternal.cs
- WsatEtwTraceListener.cs
- KeyGestureConverter.cs
- SettingsAttributes.cs
- SingleResultAttribute.cs
- MessageLogger.cs
- Dictionary.cs
- COM2PropertyPageUITypeConverter.cs
- BitmapEffectCollection.cs
- PropertyFilterAttribute.cs
- MethodRental.cs
- ValidatorUtils.cs
- RuntimeWrappedException.cs
- EventLogStatus.cs
- InternalBufferOverflowException.cs
- ConvertersCollection.cs
- DataGridViewTextBoxColumn.cs
- SslSecurityTokenParameters.cs
- PartialCachingControl.cs
- odbcmetadatacolumnnames.cs
- ExpressionWriter.cs
- AuthenticateEventArgs.cs
- HttpResponse.cs
- UnescapedXmlDiagnosticData.cs
- Point.cs
- Int32CollectionValueSerializer.cs
- MarkedHighlightComponent.cs
- IUnknownConstantAttribute.cs
- PerformanceCounterManager.cs
- ProfileProvider.cs
- COSERVERINFO.cs
- BackgroundFormatInfo.cs
- BindingContext.cs
- AsyncOperationManager.cs
- LazyTextWriterCreator.cs
- DrawingImage.cs
- RTLAwareMessageBox.cs
- ToolStripControlHost.cs
- Manipulation.cs
- EmissiveMaterial.cs
- XmlLoader.cs
- ColorConverter.cs
- DelayedRegex.cs
- WindowsStatusBar.cs
- StandardCommands.cs
- FilterElement.cs
- TrackingMemoryStreamFactory.cs
- CqlParser.cs
- CreateUserWizardStep.cs
- XmlSiteMapProvider.cs
- SeparatorAutomationPeer.cs
- SuppressIldasmAttribute.cs
- AppDomainUnloadedException.cs
- XmlDictionaryString.cs
- PointAnimation.cs
- DiscoveryRequestHandler.cs
- DataGridTableStyleMappingNameEditor.cs
- RegionIterator.cs
- Semaphore.cs
- WebServiceReceiveDesigner.cs
- WebPartHeaderCloseVerb.cs
- TreeNodeBinding.cs
- CodeArrayCreateExpression.cs
- FloaterBaseParaClient.cs
- ProxyBuilder.cs
- X509ServiceCertificateAuthenticationElement.cs
- PassportAuthentication.cs
- RightsManagementInformation.cs
- DataGridViewDataConnection.cs
- DSASignatureFormatter.cs
- ObjectResult.cs
- QueryStringParameter.cs
- NonBatchDirectoryCompiler.cs
- DataTableNewRowEvent.cs
- SystemDiagnosticsSection.cs
- DataSourceSelectArguments.cs
- Module.cs
- DesignDataSource.cs
- RelatedImageListAttribute.cs
- NumericPagerField.cs
- Storyboard.cs
- BamlLocalizationDictionary.cs
- NumberFormatter.cs