Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormatConvertedBitmap.cs
- EncryptedKeyIdentifierClause.cs
- Gdiplus.cs
- QilTargetType.cs
- Dynamic.cs
- FtpRequestCacheValidator.cs
- TransactionScopeDesigner.cs
- HyperLinkStyle.cs
- RegistrationServices.cs
- DescriptionAttribute.cs
- Matrix.cs
- Switch.cs
- ManagementBaseObject.cs
- GenericTextProperties.cs
- SqlUDTStorage.cs
- SqlTrackingQuery.cs
- WriteFileContext.cs
- MsmqIntegrationChannelListener.cs
- ToolBarDesigner.cs
- AudioFileOut.cs
- IntSecurity.cs
- PriorityQueue.cs
- ValueUnavailableException.cs
- InternalConfigSettingsFactory.cs
- ChannelSinkStacks.cs
- _OverlappedAsyncResult.cs
- TrailingSpaceComparer.cs
- DropTarget.cs
- StylusButtonEventArgs.cs
- RtfNavigator.cs
- ProcessDesigner.cs
- GenericTypeParameterBuilder.cs
- ProcessManager.cs
- DisplayToken.cs
- GroupStyle.cs
- InternalCache.cs
- DataGridViewCellLinkedList.cs
- ConditionCollection.cs
- KeyedCollection.cs
- IgnoreDataMemberAttribute.cs
- IsolatedStorageFileStream.cs
- FunctionNode.cs
- SelectionManager.cs
- SimpleLine.cs
- XmlValueConverter.cs
- SafeFreeMibTable.cs
- InputLanguageSource.cs
- linebase.cs
- CompilerScope.Storage.cs
- ServiceModelActivity.cs
- ResourceDictionary.cs
- TextShapeableCharacters.cs
- ReachIDocumentPaginatorSerializer.cs
- EmptyCollection.cs
- ListCollectionView.cs
- AbstractDataSvcMapFileLoader.cs
- CancellableEnumerable.cs
- OpCodes.cs
- VirtualPathProvider.cs
- DoubleUtil.cs
- PrtCap_Builder.cs
- AddInSegmentDirectoryNotFoundException.cs
- sitestring.cs
- DataViewManager.cs
- PerformanceCounterPermission.cs
- WebHttpDispatchOperationSelector.cs
- TextParagraphCache.cs
- DrawToolTipEventArgs.cs
- Semaphore.cs
- CmsUtils.cs
- loginstatus.cs
- ConnectionsZone.cs
- RowTypeElement.cs
- TypeCodeDomSerializer.cs
- DriveInfo.cs
- Repeater.cs
- BatchWriter.cs
- UserControl.cs
- CommentEmitter.cs
- CodeRemoveEventStatement.cs
- ToolBarButton.cs
- Group.cs
- SelectionProcessor.cs
- VersionValidator.cs
- DefinitionBase.cs
- StrongNameUtility.cs
- _LocalDataStoreMgr.cs
- Msec.cs
- WebPartTracker.cs
- ExceptionHandlersDesigner.cs
- DeploymentExceptionMapper.cs
- TimeZoneNotFoundException.cs
- RectangleGeometry.cs
- NavigationService.cs
- QueryOptionExpression.cs
- IisTraceWebEventProvider.cs
- AppDomainInfo.cs
- DataControlFieldHeaderCell.cs
- ParameterBuilder.cs
- sortedlist.cs