Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / 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
- UpdatePanel.cs
- WaitingCursor.cs
- WindowsFormsSynchronizationContext.cs
- SmtpException.cs
- XmlSchemaAttributeGroup.cs
- AnimatedTypeHelpers.cs
- WebServiceMethodData.cs
- MessageSmuggler.cs
- URL.cs
- EdmSchemaAttribute.cs
- IndexedGlyphRun.cs
- SHA384CryptoServiceProvider.cs
- ValidatorUtils.cs
- InputLanguageManager.cs
- GeneralTransformGroup.cs
- SubMenuStyle.cs
- KeyValueConfigurationCollection.cs
- DataBoundLiteralControl.cs
- Exceptions.cs
- GeneralTransform3D.cs
- EDesignUtil.cs
- autovalidator.cs
- HttpStreamFormatter.cs
- ChildDocumentBlock.cs
- XmlSchemaAny.cs
- PostBackTrigger.cs
- ScrollChrome.cs
- AddValidationError.cs
- UntypedNullExpression.cs
- XDRSchema.cs
- XamlContextStack.cs
- XmlSignatureManifest.cs
- BufferModesCollection.cs
- XamlPathDataSerializer.cs
- ComponentEditorForm.cs
- FormViewPageEventArgs.cs
- ValidatedControlConverter.cs
- XmlNodeWriter.cs
- MetabaseReader.cs
- WindowInteropHelper.cs
- XmlSerializerVersionAttribute.cs
- PasswordBox.cs
- InputBinding.cs
- TakeOrSkipWhileQueryOperator.cs
- PenLineJoinValidation.cs
- XomlCompilerHelpers.cs
- SafeNativeMethodsCLR.cs
- Object.cs
- LingerOption.cs
- DbReferenceCollection.cs
- Int64Storage.cs
- ScrollData.cs
- keycontainerpermission.cs
- ObjectToken.cs
- SqlBulkCopyColumnMapping.cs
- HtmlMobileTextWriter.cs
- ShowExpandedMultiValueConverter.cs
- CorrelationManager.cs
- ClientBuildManagerCallback.cs
- Int32RectValueSerializer.cs
- ActivityValidator.cs
- _BaseOverlappedAsyncResult.cs
- RijndaelManagedTransform.cs
- DrawingCollection.cs
- ToolStripItemTextRenderEventArgs.cs
- Underline.cs
- WebBrowser.cs
- SecurityContextKeyIdentifierClause.cs
- DataGridItem.cs
- HitTestParameters3D.cs
- ProfilePropertyMetadata.cs
- DecoderReplacementFallback.cs
- StringFreezingAttribute.cs
- CompoundFileReference.cs
- SqlWebEventProvider.cs
- FileDialogCustomPlace.cs
- FunctionImportElement.cs
- HeaderedItemsControl.cs
- InputMethodStateTypeInfo.cs
- securitycriticaldataClass.cs
- ListChunk.cs
- ImageMapEventArgs.cs
- ForeignKeyFactory.cs
- NavigationPropertyAccessor.cs
- CredentialManagerDialog.cs
- TransportSecurityBindingElement.cs
- SQLDecimalStorage.cs
- MachineKeyValidationConverter.cs
- XMLSchema.cs
- ToolStripPanel.cs
- sqlinternaltransaction.cs
- MatrixUtil.cs
- MustUnderstandSoapException.cs
- Hash.cs
- DataSvcMapFileSerializer.cs
- ButtonField.cs
- Filter.cs
- ClientSponsor.cs
- LongValidator.cs
- TraceData.cs