Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / ExtenderProvidedPropertyAttribute.cs / 1 / ExtenderProvidedPropertyAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// /// [AttributeUsage(AttributeTargets.All)] public sealed class ExtenderProvidedPropertyAttribute : Attribute { private PropertyDescriptor extenderProperty; private IExtenderProvider provider; private Type receiverType; ////// ExtenderProvidedPropertyAttribute is an attribute that marks that a property /// was actually offered up by and extender provider. /// ////// Creates a new ExtenderProvidedPropertyAttribute. /// internal static ExtenderProvidedPropertyAttribute Create(PropertyDescriptor extenderProperty, Type receiverType, IExtenderProvider provider) { ExtenderProvidedPropertyAttribute e = new ExtenderProvidedPropertyAttribute(); e.extenderProperty = extenderProperty; e.receiverType = receiverType; e.provider = provider; return e; } ////// Creates an empty ExtenderProvidedPropertyAttribute. /// public ExtenderProvidedPropertyAttribute() { } ////// PropertyDescriptor of the property that is being provided. /// public PropertyDescriptor ExtenderProperty { get { return extenderProperty; } } ////// Extender provider that is providing the property. /// public IExtenderProvider Provider { get { return provider; } } ////// The type of object that can receive these properties. /// public Type ReceiverType { get { return receiverType; } } public override bool Equals(object obj) { if (obj == this) { return true; } ExtenderProvidedPropertyAttribute other = obj as ExtenderProvidedPropertyAttribute; return (other != null) && other.extenderProperty.Equals(extenderProperty) && other.provider.Equals(provider) && other.receiverType.Equals(receiverType); } public override int GetHashCode() { return base.GetHashCode(); } ////// /// public override bool IsDefaultAttribute() { return receiverType == null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// /// [AttributeUsage(AttributeTargets.All)] public sealed class ExtenderProvidedPropertyAttribute : Attribute { private PropertyDescriptor extenderProperty; private IExtenderProvider provider; private Type receiverType; ////// ExtenderProvidedPropertyAttribute is an attribute that marks that a property /// was actually offered up by and extender provider. /// ////// Creates a new ExtenderProvidedPropertyAttribute. /// internal static ExtenderProvidedPropertyAttribute Create(PropertyDescriptor extenderProperty, Type receiverType, IExtenderProvider provider) { ExtenderProvidedPropertyAttribute e = new ExtenderProvidedPropertyAttribute(); e.extenderProperty = extenderProperty; e.receiverType = receiverType; e.provider = provider; return e; } ////// Creates an empty ExtenderProvidedPropertyAttribute. /// public ExtenderProvidedPropertyAttribute() { } ////// PropertyDescriptor of the property that is being provided. /// public PropertyDescriptor ExtenderProperty { get { return extenderProperty; } } ////// Extender provider that is providing the property. /// public IExtenderProvider Provider { get { return provider; } } ////// The type of object that can receive these properties. /// public Type ReceiverType { get { return receiverType; } } public override bool Equals(object obj) { if (obj == this) { return true; } ExtenderProvidedPropertyAttribute other = obj as ExtenderProvidedPropertyAttribute; return (other != null) && other.extenderProperty.Equals(extenderProperty) && other.provider.Equals(provider) && other.receiverType.Equals(receiverType); } public override int GetHashCode() { return base.GetHashCode(); } ////// /// public override bool IsDefaultAttribute() { return receiverType == null; } } } // 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
- SqlConnectionPoolProviderInfo.cs
- StylusPointPropertyInfo.cs
- OciEnlistContext.cs
- ServiceParser.cs
- GZipStream.cs
- EnvelopedPkcs7.cs
- DataGridViewTextBoxColumn.cs
- EventPrivateKey.cs
- PathFigure.cs
- Material.cs
- DaylightTime.cs
- MultiByteCodec.cs
- PageContentCollection.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- X509PeerCertificateElement.cs
- Message.cs
- ReachNamespaceInfo.cs
- AgileSafeNativeMemoryHandle.cs
- SecurityTokenSerializer.cs
- BamlLocalizationDictionary.cs
- VirtualPathUtility.cs
- Model3D.cs
- Fx.cs
- JsonServiceDocumentSerializer.cs
- ObjectListField.cs
- SimpleType.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- PeerCollaboration.cs
- WebPartConnectionsDisconnectVerb.cs
- CommittableTransaction.cs
- ReadOnlyCollection.cs
- Int32CAMarshaler.cs
- ComponentConverter.cs
- HttpsChannelListener.cs
- RulePatternOps.cs
- TextEditorTyping.cs
- PolyBezierSegmentFigureLogic.cs
- SelectionRange.cs
- WebPartDescriptionCollection.cs
- TypeConverterHelper.cs
- BindingSourceDesigner.cs
- HttpConfigurationContext.cs
- SystemInfo.cs
- SharedUtils.cs
- ElementAction.cs
- ApplicationTrust.cs
- ViewBox.cs
- SafeFileHandle.cs
- DBParameter.cs
- InputProviderSite.cs
- ErrorFormatterPage.cs
- ListControl.cs
- coordinatorfactory.cs
- UIPermission.cs
- GeneralTransformCollection.cs
- HtmlDocument.cs
- NativeMethodsCLR.cs
- AmbientProperties.cs
- DynamicRendererThreadManager.cs
- PropertyKey.cs
- _BaseOverlappedAsyncResult.cs
- WebBrowserDesigner.cs
- HostDesigntimeLicenseContext.cs
- LineGeometry.cs
- ResourceDefaultValueAttribute.cs
- webclient.cs
- Converter.cs
- TextTrailingCharacterEllipsis.cs
- LayoutEditorPart.cs
- InputMethod.cs
- TypeConverterHelper.cs
- FlowDocumentScrollViewer.cs
- RsaSecurityKey.cs
- Geometry3D.cs
- XmlAttributeOverrides.cs
- HttpGetClientProtocol.cs
- VerticalAlignConverter.cs
- SystemIPInterfaceStatistics.cs
- ValidationRule.cs
- ChtmlTextWriter.cs
- odbcmetadatacolumnnames.cs
- ByteRangeDownloader.cs
- Matrix.cs
- PackageRelationship.cs
- DataGridTablesFactory.cs
- SafePointer.cs
- FixedSOMPageConstructor.cs
- Perspective.cs
- Vector3DValueSerializer.cs
- arc.cs
- IDQuery.cs
- XmlSchemaSequence.cs
- ForeignKeyConstraint.cs
- DynamicValidator.cs
- BrowserCapabilitiesCodeGenerator.cs
- CatalogPart.cs
- ZipQueryOperator.cs
- UpdateRecord.cs
- CompiledQuery.cs
- BrowserDefinitionCollection.cs