Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ContentType.cs
- XmlReturnWriter.cs
- WebPartDescription.cs
- EndpointConfigContainer.cs
- ToolTipService.cs
- KerberosSecurityTokenParameters.cs
- XmlWrappingReader.cs
- StatusBarDrawItemEvent.cs
- EventLogInformation.cs
- Vector3DConverter.cs
- IListConverters.cs
- ForEachAction.cs
- HostVisual.cs
- ToolStripStatusLabel.cs
- SiteMapNodeItemEventArgs.cs
- FixedPageAutomationPeer.cs
- InitializationEventAttribute.cs
- DrawingVisual.cs
- Models.cs
- HttpServerUtilityBase.cs
- WebPartMovingEventArgs.cs
- DeadCharTextComposition.cs
- StringExpressionSet.cs
- StylusButton.cs
- SessionStateUtil.cs
- ExecutionTracker.cs
- XmlSequenceWriter.cs
- LineGeometry.cs
- Operator.cs
- Row.cs
- BasicCellRelation.cs
- HostingEnvironmentSection.cs
- CompilerGeneratedAttribute.cs
- PrivilegeNotHeldException.cs
- SqlConnectionPoolProviderInfo.cs
- EntityTypeBase.cs
- MULTI_QI.cs
- ComboBoxItem.cs
- XmlSortKey.cs
- PropertiesTab.cs
- ClusterRegistryConfigurationProvider.cs
- _LocalDataStore.cs
- SchemaMerger.cs
- MouseOverProperty.cs
- LinearKeyFrames.cs
- ImageField.cs
- Latin1Encoding.cs
- SamlAudienceRestrictionCondition.cs
- XamlBrushSerializer.cs
- AdornerLayer.cs
- Base64Encoder.cs
- TimeoutHelper.cs
- EntityParameter.cs
- COM2TypeInfoProcessor.cs
- TableLayoutCellPaintEventArgs.cs
- DataTableReader.cs
- BitmapPalette.cs
- MouseActionValueSerializer.cs
- Ray3DHitTestResult.cs
- SQLUtility.cs
- LinqDataSourceContextEventArgs.cs
- TcpSocketManager.cs
- ImageFormat.cs
- SessionStateModule.cs
- DbConnectionInternal.cs
- SBCSCodePageEncoding.cs
- AppDomainAttributes.cs
- FactoryGenerator.cs
- StringConcat.cs
- DBBindings.cs
- WriteTimeStream.cs
- OleDbConnectionInternal.cs
- WeakReferenceKey.cs
- MimeMultiPart.cs
- SmtpReplyReaderFactory.cs
- FloatUtil.cs
- InvokeMethod.cs
- TimeSpanHelper.cs
- WebPartConnectionCollection.cs
- SchemaExporter.cs
- SmtpFailedRecipientsException.cs
- InternalDispatchObject.cs
- PolicyUnit.cs
- TabControl.cs
- MetadataSerializer.cs
- Win32.cs
- EntryPointNotFoundException.cs
- EventProviderTraceListener.cs
- PermissionSet.cs
- ExpressionBuilderContext.cs
- MenuItemAutomationPeer.cs
- CacheDependency.cs
- SelfIssuedSamlTokenFactory.cs
- WebException.cs
- SQLBytesStorage.cs
- RegexInterpreter.cs
- FastPropertyAccessor.cs
- GenericAuthenticationEventArgs.cs
- SafeBitVector32.cs
- DbParameterCollectionHelper.cs