Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ConfigXmlElement.cs / 1305376 / 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
- CodeSnippetStatement.cs
- VariantWrapper.cs
- TemplateGroupCollection.cs
- DataStreams.cs
- GenericIdentity.cs
- ConnectionPoint.cs
- TextWriterTraceListener.cs
- NullableDecimalSumAggregationOperator.cs
- SiteMapSection.cs
- FormViewModeEventArgs.cs
- ActivityDesignerResources.cs
- XomlSerializationHelpers.cs
- ButtonColumn.cs
- HtmlForm.cs
- TextRangeBase.cs
- xml.cs
- DelegatedStream.cs
- xdrvalidator.cs
- CodeDelegateInvokeExpression.cs
- PlanCompilerUtil.cs
- SqlDataSourceStatusEventArgs.cs
- FixedSOMLineCollection.cs
- ProcessHost.cs
- SequentialWorkflowHeaderFooter.cs
- XmlUrlResolver.cs
- PixelFormats.cs
- ClientCultureInfo.cs
- PeerObject.cs
- AppDomainResourcePerfCounters.cs
- DataGridViewAdvancedBorderStyle.cs
- SafeNativeMethods.cs
- ParameterToken.cs
- safex509handles.cs
- APCustomTypeDescriptor.cs
- Menu.cs
- NotFiniteNumberException.cs
- EraserBehavior.cs
- FrameworkReadOnlyPropertyMetadata.cs
- TextElementCollection.cs
- CustomAttribute.cs
- QueryStringHandler.cs
- SelectorAutomationPeer.cs
- NetSectionGroup.cs
- DocumentPage.cs
- DataServiceHost.cs
- UpdateCommand.cs
- PerspectiveCamera.cs
- UInt16Converter.cs
- MachineKeyConverter.cs
- HttpCookieCollection.cs
- MessageBox.cs
- ImageBrush.cs
- DataGridViewAccessibleObject.cs
- DataSourceHelper.cs
- TypedColumnHandler.cs
- CellRelation.cs
- WebPartConnection.cs
- ClonableStack.cs
- ExecutionEngineException.cs
- CodeTypeParameterCollection.cs
- ParallelTimeline.cs
- CharAnimationBase.cs
- WebPermission.cs
- ToolStripDropDown.cs
- SQLBinary.cs
- MapPathBasedVirtualPathProvider.cs
- TouchesOverProperty.cs
- DataRecordInternal.cs
- ComponentResourceManager.cs
- XAMLParseException.cs
- WindowShowOrOpenTracker.cs
- SectionVisual.cs
- NotSupportedException.cs
- DataControlFieldCollection.cs
- DbParameterCollectionHelper.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- XmlSchema.cs
- SqlParameter.cs
- GridItemProviderWrapper.cs
- TimeSpanValidator.cs
- ValidationRuleCollection.cs
- SimpleHandlerBuildProvider.cs
- TimelineClockCollection.cs
- SqlExpressionNullability.cs
- CqlParserHelpers.cs
- SerializationException.cs
- KoreanCalendar.cs
- StrongNameUtility.cs
- Style.cs
- FormViewCommandEventArgs.cs
- StringCollectionMarkupSerializer.cs
- MemberDomainMap.cs
- Variable.cs
- PointConverter.cs
- DataServiceContext.cs
- ICspAsymmetricAlgorithm.cs
- TogglePatternIdentifiers.cs
- ColumnMap.cs
- ProfileService.cs
- CheckedPointers.cs