Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Configuration / System / Configuration / ConfigXmlElement.cs / 1 / ConfigXmlElement.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 ConfigXmlElement : XmlElement, IConfigErrorInfo { int _line; string _filename; public ConfigXmlElement( 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); ConfigXmlElement clone = cloneNode as ConfigXmlElement; 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 ConfigXmlElement : XmlElement, IConfigErrorInfo { int _line; string _filename; public ConfigXmlElement( 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); ConfigXmlElement clone = cloneNode as ConfigXmlElement; 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
- validationstate.cs
- WindowProviderWrapper.cs
- StorageScalarPropertyMapping.cs
- HttpEncoderUtility.cs
- Pen.cs
- BamlLocalizationDictionary.cs
- InfoCardTraceRecord.cs
- InstanceDataCollectionCollection.cs
- VisualStyleElement.cs
- ScrollContentPresenter.cs
- TimeZone.cs
- GridViewColumnCollection.cs
- QueryContinueDragEvent.cs
- XmlRawWriterWrapper.cs
- BindingWorker.cs
- DataGridViewTextBoxEditingControl.cs
- Baml6Assembly.cs
- Typography.cs
- CryptoApi.cs
- DependencyPropertyKey.cs
- HostVisual.cs
- MaskedTextBoxDesigner.cs
- Baml6Assembly.cs
- SamlDoNotCacheCondition.cs
- ModifierKeysValueSerializer.cs
- BaseValidatorDesigner.cs
- WebPartMenu.cs
- XmlFileEditor.cs
- DesignerWithHeader.cs
- HtmlShimManager.cs
- WebBrowserContainer.cs
- MaskedTextBox.cs
- HttpListenerTimeoutManager.cs
- SpecularMaterial.cs
- CurrencyWrapper.cs
- UITypeEditors.cs
- cache.cs
- ZipIOLocalFileHeader.cs
- XPathChildIterator.cs
- AppearanceEditorPart.cs
- LicenseContext.cs
- AnnotationMap.cs
- OutOfMemoryException.cs
- GroupItem.cs
- InstanceLockedException.cs
- Models.cs
- DynamicFilter.cs
- mda.cs
- AnnotationResource.cs
- DataGridViewSortCompareEventArgs.cs
- DeviceContexts.cs
- HttpApplicationFactory.cs
- SystemResourceKey.cs
- CellParaClient.cs
- XmlTextReaderImplHelpers.cs
- AlgoModule.cs
- BasicExpressionVisitor.cs
- IdentifierService.cs
- RecordConverter.cs
- GAC.cs
- Storyboard.cs
- PersonalizationState.cs
- EventSchemaTraceListener.cs
- StaticResourceExtension.cs
- XsltConvert.cs
- SafeProcessHandle.cs
- BaseInfoTable.cs
- EditorServiceContext.cs
- ZipIOModeEnforcingStream.cs
- NamespaceList.cs
- SoapAttributes.cs
- IFlowDocumentViewer.cs
- IdentifierCollection.cs
- PathFigure.cs
- LinearGradientBrush.cs
- WebUtility.cs
- SchemaImporterExtensionsSection.cs
- DoubleLink.cs
- RegexParser.cs
- HttpPostedFile.cs
- PrimitiveType.cs
- Stylesheet.cs
- WebPartVerbsEventArgs.cs
- XmlSchemaSimpleContent.cs
- DiscoveryMessageSequenceGenerator.cs
- DesignerSerializationVisibilityAttribute.cs
- TextDecorationUnitValidation.cs
- SHA256.cs
- PreservationFileWriter.cs
- PartialCachingControl.cs
- PerformanceCountersElement.cs
- MarshalByValueComponent.cs
- PropertyIDSet.cs
- RuleRef.cs
- TextBounds.cs
- AuthorizationRuleCollection.cs
- EpmContentSerializer.cs
- ManagementInstaller.cs
- ToolStripPanel.cs
- ProviderException.cs