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
- ContentPlaceHolder.cs
- IndexerNameAttribute.cs
- ListItemConverter.cs
- HyperLink.cs
- XsdCachingReader.cs
- IntranetCredentialPolicy.cs
- LookupNode.cs
- Message.cs
- PackageRelationship.cs
- ThreadAttributes.cs
- ClientTarget.cs
- HostProtectionException.cs
- ClientFormsIdentity.cs
- MemoryFailPoint.cs
- SimpleLine.cs
- ToolStripGrip.cs
- DbProviderManifest.cs
- FastEncoderWindow.cs
- CodeDomSerializerException.cs
- DesignTimeTemplateParser.cs
- ReflectPropertyDescriptor.cs
- MdiWindowListItemConverter.cs
- ClientTargetCollection.cs
- RSAPKCS1SignatureFormatter.cs
- safex509handles.cs
- VisualBasicExpressionConverter.cs
- IISMapPath.cs
- RadioButtonBaseAdapter.cs
- PeerInvitationResponse.cs
- DataGridToolTip.cs
- UrlMapping.cs
- DefaultTextStoreTextComposition.cs
- UnitySerializationHolder.cs
- OleDbError.cs
- SchemaObjectWriter.cs
- BaseDataBoundControl.cs
- MsmqPoisonMessageException.cs
- PreservationFileReader.cs
- StrokeCollectionDefaultValueFactory.cs
- UnmanagedMarshal.cs
- ErasingStroke.cs
- QuadTree.cs
- XmlDocumentFragment.cs
- SafeHandles.cs
- TypeUtils.cs
- StorageInfo.cs
- HwndSourceParameters.cs
- WindowsStartMenu.cs
- ProfileSettings.cs
- ConfigurationManagerHelperFactory.cs
- RtfToken.cs
- CodeMemberProperty.cs
- CodeTypeParameter.cs
- OracleCommandSet.cs
- RichTextBox.cs
- RadioButtonBaseAdapter.cs
- FontWeight.cs
- TokenBasedSet.cs
- ListChangedEventArgs.cs
- DesignOnlyAttribute.cs
- WinFormsUtils.cs
- ServiceDescriptionSerializer.cs
- InternalRelationshipCollection.cs
- SqlPersonalizationProvider.cs
- LoginViewDesigner.cs
- fixedPageContentExtractor.cs
- CatalogPartChrome.cs
- DictionaryEntry.cs
- WSSecurityJan2004.cs
- PermissionSetTriple.cs
- EntityDataSourceContextDisposingEventArgs.cs
- ZipArchive.cs
- SoapProtocolReflector.cs
- QuaternionAnimation.cs
- MemoryPressure.cs
- Stylesheet.cs
- NameValueSectionHandler.cs
- AttachedAnnotation.cs
- SelectionProviderWrapper.cs
- Message.cs
- ButtonStandardAdapter.cs
- PhysicalOps.cs
- DynamicField.cs
- BufferedWebEventProvider.cs
- NativeMethods.cs
- SafeSerializationManager.cs
- XmlImplementation.cs
- WindowsStartMenu.cs
- SqlGenericUtil.cs
- TransactionState.cs
- TextDecorationUnitValidation.cs
- PerformanceCountersElement.cs
- CustomDictionarySources.cs
- FontCacheUtil.cs
- WrapperEqualityComparer.cs
- AnimationClock.cs
- SqlCacheDependency.cs
- MimePart.cs
- ConvertersCollection.cs
- BmpBitmapEncoder.cs