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
- FieldMetadata.cs
- VoiceChangeEventArgs.cs
- LocationSectionRecord.cs
- SharedPersonalizationStateInfo.cs
- DataTemplate.cs
- Marshal.cs
- AlphabeticalEnumConverter.cs
- ListViewEditEventArgs.cs
- FormViewDeleteEventArgs.cs
- OptimisticConcurrencyException.cs
- BasicExpressionVisitor.cs
- IpcClientChannel.cs
- RequestStatusBarUpdateEventArgs.cs
- WaitForChangedResult.cs
- AuthenticationException.cs
- AspNetHostingPermission.cs
- SerialPort.cs
- CodeSnippetExpression.cs
- ISFClipboardData.cs
- SchemaContext.cs
- AutomationElement.cs
- RectangleConverter.cs
- CmsInterop.cs
- ClaimTypes.cs
- RNGCryptoServiceProvider.cs
- TextBoxAutomationPeer.cs
- DbTransaction.cs
- Hashtable.cs
- PathData.cs
- ContextBase.cs
- SqlDataReaderSmi.cs
- PassportIdentity.cs
- StringArrayConverter.cs
- OleDbDataReader.cs
- IndentedWriter.cs
- EventLogPermission.cs
- EditingCoordinator.cs
- PenThreadWorker.cs
- Knowncolors.cs
- TimeoutValidationAttribute.cs
- DebugHandleTracker.cs
- SelectionListDesigner.cs
- CodeStatementCollection.cs
- HwndHostAutomationPeer.cs
- WpfXamlType.cs
- RegexCompilationInfo.cs
- DataSourceConverter.cs
- ServiceDesigner.cs
- SqlDataSourceConnectionPanel.cs
- GlyphManager.cs
- StateDesigner.Helpers.cs
- GenericTextProperties.cs
- BehaviorEditorPart.cs
- EditorZoneAutoFormat.cs
- XmlNamespaceManager.cs
- WSHttpTransportSecurityElement.cs
- TraceHwndHost.cs
- XamlNamespaceHelper.cs
- PropertyEmitterBase.cs
- RelationshipEnd.cs
- TrackingProfileSerializer.cs
- BamlTreeNode.cs
- Crc32.cs
- RemoteCryptoTokenProvider.cs
- EnumerableRowCollection.cs
- BooleanKeyFrameCollection.cs
- StateDesigner.Layouts.cs
- Debug.cs
- LinkArea.cs
- EditorPart.cs
- LinqDataSourceHelper.cs
- ComboBox.cs
- QueryConverter.cs
- AvTrace.cs
- TreeViewAutomationPeer.cs
- CodeTypeMember.cs
- ColumnHeaderConverter.cs
- StylusDownEventArgs.cs
- PolyQuadraticBezierSegment.cs
- VirtualPathUtility.cs
- Vertex.cs
- MatrixCamera.cs
- SessionPageStatePersister.cs
- MexTcpBindingElement.cs
- EpmContentSerializer.cs
- BufferedResponseStream.cs
- SpanIndex.cs
- StyleCollectionEditor.cs
- SettingsPropertyValueCollection.cs
- DesignerActionUI.cs
- ProfessionalColors.cs
- HttpConfigurationContext.cs
- NumberSubstitution.cs
- TextElementEnumerator.cs
- Opcode.cs
- PolyQuadraticBezierSegment.cs
- GenericFlowSwitchHelper.cs
- safex509handles.cs
- StringSource.cs
- TransactionBehavior.cs