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
- XmlSchema.cs
- CanonicalFontFamilyReference.cs
- Animatable.cs
- SubpageParagraph.cs
- TextCharacters.cs
- FSWPathEditor.cs
- SQLByte.cs
- RectangleHotSpot.cs
- UseAttributeSetsAction.cs
- SecurityTokenResolver.cs
- UndoManager.cs
- DataGrid.cs
- DesignerLoader.cs
- DbProviderFactory.cs
- MD5CryptoServiceProvider.cs
- Int32Rect.cs
- ZipFileInfo.cs
- ChildrenQuery.cs
- ThrowHelper.cs
- AsnEncodedData.cs
- ReachDocumentReferenceSerializerAsync.cs
- GlyphInfoList.cs
- HtmlElementCollection.cs
- FlowDocumentPaginator.cs
- UrlMappingCollection.cs
- PrimitiveXmlSerializers.cs
- FamilyMap.cs
- GridViewHeaderRowPresenter.cs
- FrameworkContentElement.cs
- MissingFieldException.cs
- Vector3DCollection.cs
- DataSourceCache.cs
- RtfToXamlLexer.cs
- EditorAttribute.cs
- DataPointer.cs
- SqlFileStream.cs
- ClientApiGenerator.cs
- ReferenceSchema.cs
- ZipIOFileItemStream.cs
- SqlFacetAttribute.cs
- RTLAwareMessageBox.cs
- MissingSatelliteAssemblyException.cs
- GroupBox.cs
- filewebrequest.cs
- DbInsertCommandTree.cs
- TextEditorContextMenu.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ByteConverter.cs
- HelpProvider.cs
- ButtonField.cs
- MsmqHostedTransportManager.cs
- TypeDependencyAttribute.cs
- PropertyBuilder.cs
- ReturnEventArgs.cs
- MsmqOutputSessionChannel.cs
- LayoutEngine.cs
- CheckBox.cs
- XmlLoader.cs
- ProfileSettingsCollection.cs
- CryptoHandle.cs
- DbParameterHelper.cs
- DataSourceSerializationException.cs
- OleDbConnectionInternal.cs
- LinqDataSourceDisposeEventArgs.cs
- WinInet.cs
- XmlAnyAttributeAttribute.cs
- OdbcErrorCollection.cs
- MetadataHelper.cs
- DataGridViewRowStateChangedEventArgs.cs
- XmlSchemaAll.cs
- WindowsGrip.cs
- WebControlParameterProxy.cs
- RepeatButton.cs
- HttpConfigurationContext.cs
- ContainerParaClient.cs
- XmlSchemaIdentityConstraint.cs
- RegexMatch.cs
- TemplateField.cs
- ScriptRegistrationManager.cs
- codemethodreferenceexpression.cs
- AsymmetricSignatureDeformatter.cs
- shaperfactoryquerycacheentry.cs
- DateTimeConverter.cs
- ComAdminWrapper.cs
- TraceContextRecord.cs
- TabControlCancelEvent.cs
- CompositeFontParser.cs
- DataRowView.cs
- ReliabilityContractAttribute.cs
- TrustLevel.cs
- StrokeSerializer.cs
- regiisutil.cs
- CompilerScopeManager.cs
- SystemNetworkInterface.cs
- DBDataPermissionAttribute.cs
- StatusBarItemAutomationPeer.cs
- StickyNoteHelper.cs
- DataSourceXmlElementAttribute.cs
- Symbol.cs
- ContextBase.cs