Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Configuration / System / Configuration / ConfigXmlAttribute.cs / 1 / 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
- WindowsRichEdit.cs
- ConfigurationElementProperty.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- xmlformatgeneratorstatics.cs
- BlobPersonalizationState.cs
- Tracer.cs
- TabControlToolboxItem.cs
- WebResourceAttribute.cs
- ProcessHostMapPath.cs
- JsonFormatMapping.cs
- DataObjectFieldAttribute.cs
- Dynamic.cs
- ResourceProviderFactory.cs
- Quad.cs
- HttpServerVarsCollection.cs
- Pipe.cs
- GroupQuery.cs
- XmlWriterTraceListener.cs
- MsmqIntegrationProcessProtocolHandler.cs
- TextRangeBase.cs
- KeyConverter.cs
- sqlcontext.cs
- TreeViewEvent.cs
- VarInfo.cs
- TemplateLookupAction.cs
- XPathMessageFilterElement.cs
- Itemizer.cs
- HostedHttpTransportManager.cs
- HMACSHA512.cs
- SQLInt32Storage.cs
- PageParser.cs
- DataTableClearEvent.cs
- Delegate.cs
- mediaclock.cs
- ModelItemExtensions.cs
- SocketException.cs
- OptimizedTemplateContent.cs
- DateTimeValueSerializerContext.cs
- RSAPKCS1KeyExchangeFormatter.cs
- LowerCaseStringConverter.cs
- GroupByExpressionRewriter.cs
- AmbiguousMatchException.cs
- LinkedList.cs
- Error.cs
- ResolveRequestResponseAsyncResult.cs
- DataGridTextBoxColumn.cs
- CollaborationHelperFunctions.cs
- ConfigurationConverterBase.cs
- GenericEnumConverter.cs
- WebDescriptionAttribute.cs
- Task.cs
- EventWaitHandle.cs
- ConfigXmlAttribute.cs
- DateTimeOffset.cs
- InputEventArgs.cs
- BooleanProjectedSlot.cs
- XmlDeclaration.cs
- WebControlParameterProxy.cs
- GridItemCollection.cs
- PersistChildrenAttribute.cs
- PreApplicationStartMethodAttribute.cs
- ObjectTag.cs
- ModuleBuilderData.cs
- StrokeDescriptor.cs
- BufferedReceiveElement.cs
- TransformerInfoCollection.cs
- WebPartMenu.cs
- DocumentCollection.cs
- HotCommands.cs
- CodeDelegateInvokeExpression.cs
- DebugView.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ToolStripDropDownMenu.cs
- RuleSetDialog.Designer.cs
- clipboard.cs
- MobileTextWriter.cs
- LinkedList.cs
- CaseInsensitiveHashCodeProvider.cs
- HttpListenerPrefixCollection.cs
- ScriptingScriptResourceHandlerSection.cs
- SharedDp.cs
- CloudCollection.cs
- EntitySqlException.cs
- SecurityDocument.cs
- ToolboxItemLoader.cs
- COM2FontConverter.cs
- Exception.cs
- EngineSite.cs
- ToolboxItemAttribute.cs
- SqlClientMetaDataCollectionNames.cs
- BackStopAuthenticationModule.cs
- InstanceLockedException.cs
- SoapTypeAttribute.cs
- ActiveDocumentEvent.cs
- ClockController.cs
- Latin1Encoding.cs
- AssemblyAssociatedContentFileAttribute.cs
- DropShadowBitmapEffect.cs
- ImpersonationContext.cs
- AspNetRouteServiceHttpHandler.cs