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
- MimeXmlReflector.cs
- Int64.cs
- ProcessRequestArgs.cs
- ViewLoader.cs
- SafeNativeMethods.cs
- SafeUserTokenHandle.cs
- DetailsView.cs
- XmlDataDocument.cs
- AssertSection.cs
- ConnectorMovedEventArgs.cs
- Listbox.cs
- XmlExceptionHelper.cs
- XmlAttributeAttribute.cs
- CodeStatement.cs
- RootBrowserWindowAutomationPeer.cs
- MultiSelectRootGridEntry.cs
- DataGridCommandEventArgs.cs
- ChangeNode.cs
- FlowDocumentReader.cs
- SmtpDigestAuthenticationModule.cs
- AsyncParams.cs
- Conditional.cs
- SoapEnumAttribute.cs
- EllipticalNodeOperations.cs
- OdbcCommand.cs
- EdmValidator.cs
- SafeFileMappingHandle.cs
- AdPostCacheSubstitution.cs
- PageHandlerFactory.cs
- PrintPreviewDialog.cs
- XmlAttributeCollection.cs
- ObjectStateEntry.cs
- RecipientInfo.cs
- ValidationManager.cs
- SamlEvidence.cs
- DeclarativeCatalogPart.cs
- XmlAtomicValue.cs
- Int32AnimationBase.cs
- WebServiceHandler.cs
- RSACryptoServiceProvider.cs
- BinaryReader.cs
- GuidelineSet.cs
- EntityContainerRelationshipSetEnd.cs
- CodeParameterDeclarationExpressionCollection.cs
- RelationshipWrapper.cs
- ObjectDisposedException.cs
- PageWrapper.cs
- HebrewNumber.cs
- VirtualPath.cs
- WebPartConnectionsCloseVerb.cs
- ReadOnlyTernaryTree.cs
- DbDataSourceEnumerator.cs
- CodeSubDirectory.cs
- RewritingProcessor.cs
- DbProviderFactoriesConfigurationHandler.cs
- ScriptingAuthenticationServiceSection.cs
- Pair.cs
- RuleSetReference.cs
- QilChoice.cs
- FacetDescription.cs
- TextRunTypographyProperties.cs
- PaintEvent.cs
- Label.cs
- AssemblyBuilder.cs
- Point3DCollectionConverter.cs
- PageThemeCodeDomTreeGenerator.cs
- WebPartConnectionCollection.cs
- DataRelation.cs
- GeneralTransform3DGroup.cs
- httpapplicationstate.cs
- RenderData.cs
- IIS7UserPrincipal.cs
- ActivityAction.cs
- _IPv6Address.cs
- OleDbConnectionInternal.cs
- TextServicesContext.cs
- MouseDevice.cs
- CheckBox.cs
- DataRow.cs
- VisualStateChangedEventArgs.cs
- AnnotationService.cs
- DataPointer.cs
- BulletedList.cs
- FixedPage.cs
- AuthStoreRoleProvider.cs
- OrderedParallelQuery.cs
- PseudoWebRequest.cs
- ReadOnlyCollectionBase.cs
- JavaScriptString.cs
- BatchParser.cs
- EnumValAlphaComparer.cs
- TypeBuilder.cs
- DataGridItemCollection.cs
- SmtpFailedRecipientException.cs
- RowBinding.cs
- _DomainName.cs
- FontWeightConverter.cs
- BooleanFunctions.cs
- OleDbReferenceCollection.cs
- Condition.cs