Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ExtenderProvidedPropertyAttribute.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventBuilder.cs
- MouseActionConverter.cs
- FileSystemEventArgs.cs
- BlobPersonalizationState.cs
- ObservableDictionary.cs
- DefaultHttpHandler.cs
- XmlEntityReference.cs
- MessageAction.cs
- ValidationErrorEventArgs.cs
- TypeConverterValueSerializer.cs
- HtmlContainerControl.cs
- Int32RectConverter.cs
- Latin1Encoding.cs
- DuplicateWaitObjectException.cs
- MessageQueueCriteria.cs
- ContentDisposition.cs
- StylusPointDescription.cs
- WebServicesInteroperability.cs
- CodeCatchClauseCollection.cs
- ListBoxItem.cs
- ToolBar.cs
- WeakEventTable.cs
- SqlIdentifier.cs
- UserControlCodeDomTreeGenerator.cs
- MSAANativeProvider.cs
- ConnectionsZone.cs
- EmptyStringExpandableObjectConverter.cs
- DataGridViewRowConverter.cs
- FormViewModeEventArgs.cs
- ManagementOptions.cs
- NamespaceMapping.cs
- initElementDictionary.cs
- SmtpMail.cs
- DataBindEngine.cs
- SiteMapNode.cs
- MemberListBinding.cs
- FieldAccessException.cs
- LicFileLicenseProvider.cs
- TableLayoutSettingsTypeConverter.cs
- StreamSecurityUpgradeProvider.cs
- WebPartMenu.cs
- XpsSerializationManager.cs
- Set.cs
- FlowLayoutSettings.cs
- Expr.cs
- OperatingSystem.cs
- RequestStatusBarUpdateEventArgs.cs
- HtmlValidatorAdapter.cs
- HostProtectionPermission.cs
- ResourceDefaultValueAttribute.cs
- StackBuilderSink.cs
- CompositeCollection.cs
- SmtpReplyReader.cs
- ToolboxDataAttribute.cs
- CompositeCollectionView.cs
- InvokeBase.cs
- EditingCommands.cs
- UIElementParaClient.cs
- NotifyParentPropertyAttribute.cs
- IriParsingElement.cs
- FrameworkElementAutomationPeer.cs
- _NegoStream.cs
- TableSectionStyle.cs
- DbgCompiler.cs
- ImageInfo.cs
- PageRequestManager.cs
- RoleGroupCollection.cs
- UrlAuthorizationModule.cs
- RootBuilder.cs
- AttributeParameterInfo.cs
- CompositeDataBoundControl.cs
- MemberMaps.cs
- ReferencedAssembly.cs
- CfgRule.cs
- ListenerConfig.cs
- ResourceType.cs
- LineServicesCallbacks.cs
- ButtonBase.cs
- Padding.cs
- VirtualDirectoryMappingCollection.cs
- RelationshipConverter.cs
- Html32TextWriter.cs
- SafeCoTaskMem.cs
- XmlAnyElementAttributes.cs
- SystemBrushes.cs
- ExpressionList.cs
- ProviderBase.cs
- TextContainer.cs
- FileDialog_Vista.cs
- CodeValidator.cs
- Mouse.cs
- InternalConfigHost.cs
- ContainerParagraph.cs
- Function.cs
- RightsManagementInformation.cs
- WebControlsSection.cs
- CodePageUtils.cs
- Odbc32.cs
- TextSelectionProcessor.cs
- TranslateTransform3D.cs