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
- Exceptions.cs
- GetIsBrowserClientRequest.cs
- DetailsViewPageEventArgs.cs
- DiscriminatorMap.cs
- SocketPermission.cs
- PolyQuadraticBezierSegment.cs
- TableRowGroupCollection.cs
- EventItfInfo.cs
- SnapshotChangeTrackingStrategy.cs
- XamlBrushSerializer.cs
- TreeViewTemplateSelector.cs
- CachedPathData.cs
- ClientViaElement.cs
- ResolveNameEventArgs.cs
- DataServiceQueryProvider.cs
- SingleStorage.cs
- TextViewSelectionProcessor.cs
- GcSettings.cs
- FilterQuery.cs
- ContourSegment.cs
- TypeBrowserDialog.cs
- FixedDocumentPaginator.cs
- StringExpressionSet.cs
- SafeNativeMemoryHandle.cs
- EventLogPermission.cs
- EntityExpressionVisitor.cs
- SessionStateSection.cs
- SmiMetaDataProperty.cs
- SAPICategories.cs
- OracleTimeSpan.cs
- MergeLocalizationDirectives.cs
- IteratorFilter.cs
- HttpCachePolicyElement.cs
- Soap.cs
- DependencyPropertyChangedEventArgs.cs
- DictionaryBase.cs
- XmlNamespaceMappingCollection.cs
- infer.cs
- XmlDataProvider.cs
- FixedSOMTableCell.cs
- SamlConstants.cs
- Binding.cs
- ViewBase.cs
- ContextMenuStrip.cs
- SecurityStandardsManager.cs
- OpenTypeLayoutCache.cs
- MediaTimeline.cs
- WebBrowsableAttribute.cs
- NameValueSectionHandler.cs
- StylusPointPropertyId.cs
- ConnectionPoint.cs
- WebPartHelpVerb.cs
- PropertySegmentSerializer.cs
- AnimatedTypeHelpers.cs
- loginstatus.cs
- HyperLinkColumn.cs
- StrongNameMembershipCondition.cs
- ObjectHandle.cs
- RuntimeHelpers.cs
- ComPlusServiceLoader.cs
- Tablet.cs
- listviewsubitemcollectioneditor.cs
- XmlSchemaInferenceException.cs
- RoleService.cs
- SerTrace.cs
- OdbcUtils.cs
- XslVisitor.cs
- _ProxyChain.cs
- __Filters.cs
- RemoteHelper.cs
- TableParaClient.cs
- FrameSecurityDescriptor.cs
- ParameterRetriever.cs
- Html32TextWriter.cs
- StrongNameIdentityPermission.cs
- HotCommands.cs
- WorkflowOwnershipException.cs
- ColumnCollection.cs
- ConditionBrowserDialog.cs
- MouseGestureConverter.cs
- ComboBoxItem.cs
- AssemblyNameEqualityComparer.cs
- SqlAggregateChecker.cs
- IPipelineRuntime.cs
- StretchValidation.cs
- ExceptionTranslationTable.cs
- Throw.cs
- SingleObjectCollection.cs
- DataBindingExpressionBuilder.cs
- FrameworkObject.cs
- MatrixAnimationUsingKeyFrames.cs
- HtmlUtf8RawTextWriter.cs
- FieldAccessException.cs
- TimeManager.cs
- RequestCachePolicyConverter.cs
- Message.cs
- LinearGradientBrush.cs
- WindowsGraphicsCacheManager.cs
- Rect3D.cs
- CodeAttachEventStatement.cs