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
- IDispatchConstantAttribute.cs
- Input.cs
- SqlInternalConnection.cs
- DiscoveryRequestHandler.cs
- DataGridTextBox.cs
- ReadOnlyDictionary.cs
- Exceptions.cs
- ValuePattern.cs
- PointLight.cs
- GeneralTransformGroup.cs
- TypeTypeConverter.cs
- DeploymentSectionCache.cs
- TextUtf8RawTextWriter.cs
- BaseCodeDomTreeGenerator.cs
- BindingExpression.cs
- BitmapScalingModeValidation.cs
- GridEntry.cs
- ToolboxItemFilterAttribute.cs
- DbConnectionPoolOptions.cs
- SQLInt16.cs
- TypeCollectionDesigner.xaml.cs
- MsmqBindingMonitor.cs
- RoutedEventArgs.cs
- SecurityStandardsManager.cs
- documentsequencetextpointer.cs
- OpenTypeLayout.cs
- IdleTimeoutMonitor.cs
- XPathExpr.cs
- MarkupCompilePass2.cs
- IFlowDocumentViewer.cs
- InvalidWMPVersionException.cs
- NetworkAddressChange.cs
- ExpressionStringBuilder.cs
- sqlnorm.cs
- RelatedImageListAttribute.cs
- SymbolDocumentInfo.cs
- CompatibleIComparer.cs
- XmlDataSourceNodeDescriptor.cs
- SortQueryOperator.cs
- OleDbFactory.cs
- HtmlTableRow.cs
- HelpKeywordAttribute.cs
- prompt.cs
- VariableBinder.cs
- GeneralEndpointIdentity.cs
- MatrixCamera.cs
- MobileCapabilities.cs
- RSAOAEPKeyExchangeDeformatter.cs
- NavigationCommands.cs
- Rotation3D.cs
- XmlLoader.cs
- ProfileManager.cs
- PagedDataSource.cs
- MetadataFile.cs
- DataGridViewRowCancelEventArgs.cs
- TextRangeEditTables.cs
- WindowsHyperlink.cs
- AutomationProperty.cs
- TypeContext.cs
- ImmutableObjectAttribute.cs
- HttpValueCollection.cs
- DataGrid.cs
- CellIdBoolean.cs
- DataServiceExpressionVisitor.cs
- LazyTextWriterCreator.cs
- XmlSchemaType.cs
- ArrangedElementCollection.cs
- WebPartManager.cs
- SoapSchemaMember.cs
- DesignerDataColumn.cs
- SqlSupersetValidator.cs
- ValueQuery.cs
- BitmapEffectInput.cs
- BorderGapMaskConverter.cs
- TaskbarItemInfo.cs
- LinqToSqlWrapper.cs
- DynamicMetaObject.cs
- ProjectedWrapper.cs
- X509CertificateValidator.cs
- SimpleWorkerRequest.cs
- Vector3DConverter.cs
- AuthenticationServiceManager.cs
- FileDetails.cs
- EntityDataSourceContainerNameItem.cs
- StackBuilderSink.cs
- ResourceSetExpression.cs
- TreeNodeEventArgs.cs
- IndexerNameAttribute.cs
- SourceItem.cs
- DesignerOptionService.cs
- IntegerFacetDescriptionElement.cs
- TextUtf8RawTextWriter.cs
- Themes.cs
- CompilerTypeWithParams.cs
- ConfigurationStrings.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- XmlTypeAttribute.cs
- XmlFormatExtensionAttribute.cs
- LeaseManager.cs
- SystemIPGlobalStatistics.cs