Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / Configuration / ConfigXmlAttribute.cs / 1305376 / ConfigXmlAttribute.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 ConfigXmlAttribute : XmlAttribute, IConfigErrorInfo { int _line; string _filename; public ConfigXmlAttribute( 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); ConfigXmlAttribute clone = cloneNode as ConfigXmlAttribute; 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 ConfigXmlAttribute : XmlAttribute, IConfigErrorInfo { int _line; string _filename; public ConfigXmlAttribute( 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); ConfigXmlAttribute clone = cloneNode as ConfigXmlAttribute; 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
- TransformerTypeCollection.cs
- PrinterResolution.cs
- EnumBuilder.cs
- Rotation3DAnimationBase.cs
- PseudoWebRequest.cs
- CopyNamespacesAction.cs
- HttpCacheVaryByContentEncodings.cs
- WindowsPen.cs
- MouseButtonEventArgs.cs
- PageBorderless.cs
- StrongNameIdentityPermission.cs
- RtfToken.cs
- WebRequestModuleElement.cs
- SettingsAttributeDictionary.cs
- TextStore.cs
- TableAdapterManagerGenerator.cs
- ProviderException.cs
- ImageSource.cs
- NamespaceCollection.cs
- DataObjectEventArgs.cs
- PeerOutputChannel.cs
- TabItemAutomationPeer.cs
- infer.cs
- QueryTask.cs
- ProcessHost.cs
- ByteKeyFrameCollection.cs
- TextRangeSerialization.cs
- DataSourceIDConverter.cs
- DataGridViewCellPaintingEventArgs.cs
- XPathNodePointer.cs
- ResolveNameEventArgs.cs
- XmlAutoDetectWriter.cs
- IgnoreFileBuildProvider.cs
- XmlDataLoader.cs
- ExpressionPrefixAttribute.cs
- CompositeTypefaceMetrics.cs
- ImageIndexEditor.cs
- AuthenticationModulesSection.cs
- MultilineStringEditor.cs
- SrgsElementList.cs
- AsymmetricKeyExchangeDeformatter.cs
- DBSchemaRow.cs
- SecurityVerifiedMessage.cs
- ObjectQueryExecutionPlan.cs
- XmlILConstructAnalyzer.cs
- TraceListener.cs
- DebugHandleTracker.cs
- Accessible.cs
- EntityDataSourceChangingEventArgs.cs
- ConnectionsZone.cs
- CodeFieldReferenceExpression.cs
- RegistrySecurity.cs
- GridProviderWrapper.cs
- ErrorFormatter.cs
- PrintDialog.cs
- NotCondition.cs
- WindowsRegion.cs
- RelatedImageListAttribute.cs
- InheritanceContextChangedEventManager.cs
- TextBoxAutoCompleteSourceConverter.cs
- SafeTimerHandle.cs
- ServiceContractViewControl.Designer.cs
- TextStore.cs
- ObjectStateManagerMetadata.cs
- ResourceAttributes.cs
- SystemDiagnosticsSection.cs
- PersonalizationState.cs
- DataReaderContainer.cs
- FunctionDescription.cs
- SimpleExpression.cs
- ProjectionCamera.cs
- SqlMethods.cs
- XpsPartBase.cs
- PageCodeDomTreeGenerator.cs
- Propagator.JoinPropagator.cs
- AutomationInteropProvider.cs
- WebPartTransformerAttribute.cs
- ByteKeyFrameCollection.cs
- GridErrorDlg.cs
- CodeDefaultValueExpression.cs
- CombinedHttpChannel.cs
- SchemaElement.cs
- SQLResource.cs
- MainMenu.cs
- RuntimeVariablesExpression.cs
- ChannelRequirements.cs
- DesignerExtenders.cs
- MailMessage.cs
- SqlException.cs
- ValueType.cs
- ExternalException.cs
- BufferedReadStream.cs
- StringResourceManager.cs
- WindowsMenu.cs
- Compiler.cs
- panel.cs
- ScriptingJsonSerializationSection.cs
- ProxyGenerator.cs
- FormatterConverter.cs
- EdmMember.cs