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
- Image.cs
- ComplexLine.cs
- EnlistmentState.cs
- PartitionerQueryOperator.cs
- NumberFunctions.cs
- WebPartEditorApplyVerb.cs
- AuthenticationService.cs
- ThrowHelper.cs
- Parser.cs
- WindowsFont.cs
- Zone.cs
- AmbiguousMatchException.cs
- XPathSingletonIterator.cs
- DataRow.cs
- RegistrationContext.cs
- PageMediaType.cs
- ButtonRenderer.cs
- AggregatePushdown.cs
- infer.cs
- HtmlControl.cs
- FastPropertyAccessor.cs
- _KerberosClient.cs
- GridViewUpdateEventArgs.cs
- BuildResultCache.cs
- CharacterHit.cs
- FrameworkContextData.cs
- SqlDataSourceAdvancedOptionsForm.cs
- Win32MouseDevice.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- FunctionParameter.cs
- ellipse.cs
- SqlPersonalizationProvider.cs
- Block.cs
- PersonalizationStateInfo.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- QuinticEase.cs
- ListBoxChrome.cs
- XhtmlBasicCalendarAdapter.cs
- SqlRetyper.cs
- ThrowHelper.cs
- DefaultEventAttribute.cs
- XpsException.cs
- SingleResultAttribute.cs
- LineGeometry.cs
- LocalizableAttribute.cs
- WebPartCollection.cs
- Vars.cs
- BulletChrome.cs
- XmlSerializationReader.cs
- PrintPreviewDialog.cs
- SafeProcessHandle.cs
- UserMapPath.cs
- CollectionChangeEventArgs.cs
- WebPartCollection.cs
- DecoderExceptionFallback.cs
- FieldNameLookup.cs
- ResXDataNode.cs
- LogicalTreeHelper.cs
- DiscreteKeyFrames.cs
- OdbcConnectionHandle.cs
- TagNameToTypeMapper.cs
- RouteItem.cs
- MeasureData.cs
- UserControl.cs
- LinearKeyFrames.cs
- XmlValidatingReader.cs
- ClientSettingsProvider.cs
- DataPagerFieldCommandEventArgs.cs
- DebuggerAttributes.cs
- newitemfactory.cs
- MessagingDescriptionAttribute.cs
- ArrayWithOffset.cs
- TypeBuilder.cs
- fixedPageContentExtractor.cs
- SatelliteContractVersionAttribute.cs
- KeyInterop.cs
- StrongNameUtility.cs
- EnumerableValidator.cs
- ProfilePropertySettingsCollection.cs
- ScaleTransform3D.cs
- PtsHelper.cs
- QilTernary.cs
- TableRow.cs
- InputProcessorProfilesLoader.cs
- AppSettingsReader.cs
- RouteItem.cs
- PrinterSettings.cs
- CqlGenerator.cs
- StorageComplexPropertyMapping.cs
- StrongName.cs
- LogicalTreeHelper.cs
- IntSecurity.cs
- DictationGrammar.cs
- DataGridViewColumnHeaderCell.cs
- ToolStripOverflow.cs
- TypeSource.cs
- BuildDependencySet.cs
- SpotLight.cs
- SpellerError.cs
- TableLayoutRowStyleCollection.cs