Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / 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
- ElementAtQueryOperator.cs
- ProcessHostFactoryHelper.cs
- AnchorEditor.cs
- TextTreeFixupNode.cs
- Int64Converter.cs
- ComAdminWrapper.cs
- PropertyChangedEventArgs.cs
- DisplayNameAttribute.cs
- SqlBuffer.cs
- PersonalizationProvider.cs
- ListViewContainer.cs
- UnconditionalPolicy.cs
- WindowsFormsSectionHandler.cs
- ObjectSecurity.cs
- ConstNode.cs
- WindowsToolbar.cs
- NativeWrapper.cs
- ProfileProvider.cs
- TypeGeneratedEventArgs.cs
- TextMessageEncodingBindingElement.cs
- RelationshipConstraintValidator.cs
- DataGridViewRowHeaderCell.cs
- AsyncPostBackTrigger.cs
- NativeMethodsCLR.cs
- XmlPreloadedResolver.cs
- WmlPhoneCallAdapter.cs
- OpenCollectionAsyncResult.cs
- EventLogRecord.cs
- StylusLogic.cs
- WmlCommandAdapter.cs
- DocobjHost.cs
- QilFactory.cs
- AsnEncodedData.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- AssemblyAttributesGoHere.cs
- XpsS0ValidatingLoader.cs
- _SecureChannel.cs
- TableLayoutRowStyleCollection.cs
- ReflectEventDescriptor.cs
- EmptyStringExpandableObjectConverter.cs
- DateTimeFormatInfoScanner.cs
- ConfigurationConverterBase.cs
- ICollection.cs
- TextStore.cs
- OutputCacheSection.cs
- MetadataItemCollectionFactory.cs
- SupportsEventValidationAttribute.cs
- CategoryValueConverter.cs
- ListItemsCollectionEditor.cs
- ConnectionsZoneAutoFormat.cs
- PerfCounters.cs
- NameValueSectionHandler.cs
- JavaScriptObjectDeserializer.cs
- SchemaNamespaceManager.cs
- FlowDocumentView.cs
- OleDbStruct.cs
- TextEndOfSegment.cs
- XmlTextAttribute.cs
- DesignerExtenders.cs
- DataGridViewRowCancelEventArgs.cs
- ListenerSingletonConnectionReader.cs
- SymbolTable.cs
- RuleSetCollection.cs
- MailHeaderInfo.cs
- TemplateContent.cs
- CompressStream.cs
- SqlBooleanMismatchVisitor.cs
- HttpServerVarsCollection.cs
- DefaultEvaluationContext.cs
- SerializationEventsCache.cs
- sqlstateclientmanager.cs
- StructuralType.cs
- ToolboxCategory.cs
- AssemblyAttributesGoHere.cs
- ISSmlParser.cs
- RoutedPropertyChangedEventArgs.cs
- UnsafeCollabNativeMethods.cs
- XmlDataContract.cs
- ForwardPositionQuery.cs
- StackOverflowException.cs
- _ScatterGatherBuffers.cs
- PartialClassGenerationTask.cs
- FileLoadException.cs
- linebase.cs
- WebPartConnectVerb.cs
- SmiXetterAccessMap.cs
- TextRenderer.cs
- XmlQueryRuntime.cs
- SortDescriptionCollection.cs
- TypeReference.cs
- SocketException.cs
- COAUTHIDENTITY.cs
- UserValidatedEventArgs.cs
- RenderDataDrawingContext.cs
- NullRuntimeConfig.cs
- FunctionMappingTranslator.cs
- DoubleAnimationClockResource.cs
- CheckPair.cs
- RepeatInfo.cs
- DbExpressionBuilder.cs