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
- RtType.cs
- ClientScriptManager.cs
- Quad.cs
- ValidatedMobileControlConverter.cs
- DataServiceHostFactory.cs
- AccessedThroughPropertyAttribute.cs
- TextEditorSelection.cs
- StatusBarItemAutomationPeer.cs
- StylusPointPropertyInfoDefaults.cs
- FastPropertyAccessor.cs
- SignatureResourcePool.cs
- CompilerInfo.cs
- SchemaTableOptionalColumn.cs
- EditModeSwitchButton.cs
- WebConfigurationHostFileChange.cs
- CellTreeNode.cs
- PackagePart.cs
- DataObjectPastingEventArgs.cs
- PropertyMapper.cs
- CFStream.cs
- HostSecurityManager.cs
- DataServiceQueryOfT.cs
- SID.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ChangeDirector.cs
- XAMLParseException.cs
- XmlStringTable.cs
- EntityContainerRelationshipSet.cs
- InfoCardRSACryptoProvider.cs
- FormCollection.cs
- PaintEvent.cs
- HyperLinkField.cs
- BamlResourceContent.cs
- RegexCaptureCollection.cs
- InvalidComObjectException.cs
- IntSecurity.cs
- SchemaElementLookUpTable.cs
- MsmqDiagnostics.cs
- ReadOnlyTernaryTree.cs
- RegistryPermission.cs
- TextWriter.cs
- ServiceTimeoutsBehavior.cs
- XmlAttributeAttribute.cs
- XmlSchemaSet.cs
- UrlMappingsModule.cs
- TickBar.cs
- SourceFileBuildProvider.cs
- RadioButton.cs
- BaseDataBoundControlDesigner.cs
- ManagedIStream.cs
- TypeForwardedToAttribute.cs
- TimeStampChecker.cs
- PhoneCallDesigner.cs
- ProtocolsConfiguration.cs
- Utils.cs
- HyperLinkField.cs
- RuleSetDialog.Designer.cs
- XmlNodeChangedEventArgs.cs
- X509AsymmetricSecurityKey.cs
- MailSettingsSection.cs
- SettingsAttributes.cs
- AttributeCollection.cs
- ExpressionBuilder.cs
- EventHandlersStore.cs
- ChannelProtectionRequirements.cs
- CriticalFinalizerObject.cs
- TransactionsSectionGroup.cs
- HeaderLabel.cs
- TrackBarRenderer.cs
- AdornedElementPlaceholder.cs
- ArgIterator.cs
- wmiprovider.cs
- XmlSchemaDatatype.cs
- TimeZone.cs
- MoveSizeWinEventHandler.cs
- MailWebEventProvider.cs
- SafeIUnknown.cs
- BinaryFormatter.cs
- XmlValidatingReader.cs
- TemplatedAdorner.cs
- FrameSecurityDescriptor.cs
- EmptyArray.cs
- NavigateEvent.cs
- KeyEvent.cs
- DeferredSelectedIndexReference.cs
- StickyNoteHelper.cs
- ADRoleFactoryConfiguration.cs
- ResolveDuplex11AsyncResult.cs
- HMACMD5.cs
- CardSpaceShim.cs
- ServiceEndpointCollection.cs
- TrustSection.cs
- XmlObjectSerializerReadContextComplex.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- RawStylusInputReport.cs
- DBDataPermissionAttribute.cs
- DomainConstraint.cs
- EntityException.cs
- DesignRelation.cs
- ExpressionBinding.cs