Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Sys / 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
- ValidatorCollection.cs
- NonBatchDirectoryCompiler.cs
- ListControl.cs
- JoinTreeSlot.cs
- StorageScalarPropertyMapping.cs
- PreloadedPackages.cs
- ObjectViewFactory.cs
- MethodCallTranslator.cs
- OdbcConnectionFactory.cs
- FileUtil.cs
- GenericAuthenticationEventArgs.cs
- MetabaseSettings.cs
- HttpConfigurationContext.cs
- SqlReorderer.cs
- configsystem.cs
- ClonableStack.cs
- FormsAuthenticationEventArgs.cs
- SettingsPropertyWrongTypeException.cs
- ProjectionCamera.cs
- PageBreakRecord.cs
- FileInfo.cs
- TreeViewImageIndexConverter.cs
- XmlBinaryReader.cs
- Compiler.cs
- CurrentTimeZone.cs
- InputElement.cs
- Color.cs
- InputLanguageCollection.cs
- PixelFormat.cs
- Cursor.cs
- ExpressionHelper.cs
- CompositionTarget.cs
- DependencySource.cs
- OdbcConnectionStringbuilder.cs
- AttributeCollection.cs
- DocumentOutline.cs
- PointAnimation.cs
- RC2.cs
- SqlNamer.cs
- MenuCommand.cs
- ApplicationException.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- KernelTypeValidation.cs
- WebPartConnectionsCancelEventArgs.cs
- EntitySetBaseCollection.cs
- PropertyManager.cs
- PrivateFontCollection.cs
- DataViewManagerListItemTypeDescriptor.cs
- SymbolMethod.cs
- PerformanceCounterCategory.cs
- ObjectDataSourceFilteringEventArgs.cs
- CorrelationScope.cs
- NamespaceInfo.cs
- TdsParser.cs
- XmlDomTextWriter.cs
- ReliableInputConnection.cs
- WindowsScroll.cs
- PagePropertiesChangingEventArgs.cs
- ToolStripActionList.cs
- XmlLinkedNode.cs
- IgnoreSection.cs
- OdbcConnection.cs
- PropertiesTab.cs
- Stopwatch.cs
- WebResponse.cs
- HtmlForm.cs
- AnnotationAdorner.cs
- UnsafeNativeMethodsPenimc.cs
- PlaceHolder.cs
- ColorIndependentAnimationStorage.cs
- EventBookmark.cs
- AppDomainUnloadedException.cs
- SchemaAttDef.cs
- Switch.cs
- FixedSchema.cs
- ColorConvertedBitmap.cs
- GcSettings.cs
- COSERVERINFO.cs
- SoapMessage.cs
- RecordManager.cs
- DesignerCategoryAttribute.cs
- FixedTextSelectionProcessor.cs
- RequestQueue.cs
- Border.cs
- MultiByteCodec.cs
- WebPartAddingEventArgs.cs
- sqlinternaltransaction.cs
- basemetadatamappingvisitor.cs
- HeaderLabel.cs
- PrintDialog.cs
- securitymgrsite.cs
- ConnectionStringsExpressionBuilder.cs
- SoapSchemaExporter.cs
- DBPropSet.cs
- CatalogPartChrome.cs
- PackUriHelper.cs
- DataReceivedEventArgs.cs
- Automation.cs
- TextStore.cs
- WebServiceTypeData.cs