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
- PropertyChangedEventArgs.cs
- DesignerWebPartChrome.cs
- DataTableTypeConverter.cs
- BaseTreeIterator.cs
- ContainerUIElement3D.cs
- PrimitiveSchema.cs
- RepeaterItemEventArgs.cs
- BitmapEffectState.cs
- Configuration.cs
- RightNameExpirationInfoPair.cs
- ScrollableControl.cs
- ItemsPanelTemplate.cs
- ClientConfigPaths.cs
- HMACMD5.cs
- SafeEventHandle.cs
- SelectionWordBreaker.cs
- EdmError.cs
- SignatureToken.cs
- ConfigurationPermission.cs
- XmlParserContext.cs
- X509RecipientCertificateClientElement.cs
- SafeTimerHandle.cs
- TabRenderer.cs
- TraceContextEventArgs.cs
- Button.cs
- MobileTextWriter.cs
- RepeaterItem.cs
- CodeAttributeDeclarationCollection.cs
- HttpWebRequestElement.cs
- ColorIndependentAnimationStorage.cs
- base64Transforms.cs
- PerformanceCounterCategory.cs
- Operand.cs
- WorkflowPrinting.cs
- FontFamilyValueSerializer.cs
- SelectionListComponentEditor.cs
- EventLogTraceListener.cs
- ConcurrencyBehavior.cs
- ReturnType.cs
- ToolBar.cs
- PerformanceCounterLib.cs
- InternalConfigEventArgs.cs
- Matrix3DValueSerializer.cs
- WebResponse.cs
- GeneralTransform.cs
- ScrollData.cs
- CalendarAutoFormat.cs
- OracleException.cs
- InProcStateClientManager.cs
- SqlLiftWhereClauses.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ConfigXmlText.cs
- _Events.cs
- NotFiniteNumberException.cs
- SQLDecimal.cs
- DelegatingTypeDescriptionProvider.cs
- MouseEventArgs.cs
- ProcessInfo.cs
- ISFClipboardData.cs
- DefaultBindingPropertyAttribute.cs
- ExplicitDiscriminatorMap.cs
- LayoutManager.cs
- ContextActivityUtils.cs
- UrlAuthFailedErrorFormatter.cs
- UnsignedPublishLicense.cs
- AsyncResult.cs
- ConcurrentDictionary.cs
- ExecutedRoutedEventArgs.cs
- Configuration.cs
- RequestUriProcessor.cs
- hebrewshape.cs
- FunctionQuery.cs
- QilBinary.cs
- RegexStringValidatorAttribute.cs
- DPAPIProtectedConfigurationProvider.cs
- SoapAttributes.cs
- _ProxyChain.cs
- SchemaMerger.cs
- EntitySetBaseCollection.cs
- LicenseContext.cs
- MarshalDirectiveException.cs
- ListViewDesigner.cs
- BoundField.cs
- QilLoop.cs
- LogReserveAndAppendState.cs
- TrustLevelCollection.cs
- UnknownWrapper.cs
- Brush.cs
- Documentation.cs
- IndependentAnimationStorage.cs
- MessageSmuggler.cs
- RecordManager.cs
- MSHTMLHostUtil.cs
- SafeLibraryHandle.cs
- DescendentsWalkerBase.cs
- ControlTemplate.cs
- KeyGestureConverter.cs
- BindableTemplateBuilder.cs
- TypeConverterAttribute.cs
- Rect.cs