Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Sys / 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
- CodeAttributeArgumentCollection.cs
- ValidationEventArgs.cs
- ToolStripDropDownButton.cs
- ConfigurationManagerHelperFactory.cs
- GrammarBuilderDictation.cs
- CryptoConfig.cs
- UniqueCodeIdentifierScope.cs
- Base64Encoder.cs
- ListItem.cs
- CharConverter.cs
- CrossSiteScriptingValidation.cs
- AnimationClockResource.cs
- RelatedImageListAttribute.cs
- ACL.cs
- TypeForwardedToAttribute.cs
- ExecutionContext.cs
- FlowDocumentScrollViewer.cs
- TypeGeneratedEventArgs.cs
- ConditionCollection.cs
- ButtonRenderer.cs
- TextControlDesigner.cs
- PopupRoot.cs
- LabelEditEvent.cs
- StringToken.cs
- FeatureSupport.cs
- PerfService.cs
- SingleTagSectionHandler.cs
- UnionCodeGroup.cs
- ToolStripTextBox.cs
- GridView.cs
- XmlSchemaAnnotation.cs
- QilValidationVisitor.cs
- StoreAnnotationsMap.cs
- XmlSequenceWriter.cs
- SQLDateTime.cs
- PropertyStore.cs
- SafeTimerHandle.cs
- ItemsPresenter.cs
- PnrpPermission.cs
- GZipStream.cs
- RegexStringValidatorAttribute.cs
- DesigntimeLicenseContext.cs
- TextParagraphProperties.cs
- ImportRequest.cs
- ConfigurationLocationCollection.cs
- ToolTipAutomationPeer.cs
- SemaphoreSecurity.cs
- SqlBulkCopy.cs
- SortableBindingList.cs
- InstalledFontCollection.cs
- InvalidDataException.cs
- HierarchicalDataSourceControl.cs
- XmlKeywords.cs
- NumericUpDownAccelerationCollection.cs
- IPGlobalProperties.cs
- KoreanCalendar.cs
- CodeAssignStatement.cs
- CaretElement.cs
- XmlDataLoader.cs
- TypeLoadException.cs
- EventLogEntry.cs
- InvalidPropValue.cs
- SourceItem.cs
- DockingAttribute.cs
- PassportIdentity.cs
- xdrvalidator.cs
- ADMembershipUser.cs
- DataSourceControl.cs
- OwnerDrawPropertyBag.cs
- cache.cs
- COM2TypeInfoProcessor.cs
- TempFiles.cs
- GridViewUpdatedEventArgs.cs
- LocatorGroup.cs
- UpdatePanelTrigger.cs
- AuthenticationServiceManager.cs
- AssemblyResourceLoader.cs
- CounterSampleCalculator.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- OutputCacheProfile.cs
- AudioFileOut.cs
- EdmConstants.cs
- ContractComponent.cs
- Ray3DHitTestResult.cs
- SafeThreadHandle.cs
- loginstatus.cs
- ListViewItem.cs
- MouseOverProperty.cs
- AuthorizationRuleCollection.cs
- DataServiceClientException.cs
- ConfigurationManagerInternalFactory.cs
- CacheRequest.cs
- FillErrorEventArgs.cs
- XmlQueryOutput.cs
- Attributes.cs
- ViewStateException.cs
- DbgUtil.cs
- PartitionerStatic.cs
- MultiBinding.cs
- ButtonColumn.cs