Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- ProgressPage.cs
- ShortcutKeysEditor.cs
- ObjectManager.cs
- CqlErrorHelper.cs
- XmlSchemaSimpleTypeUnion.cs
- BooleanProjectedSlot.cs
- MetabaseServerConfig.cs
- WebPartAddingEventArgs.cs
- ScrollEventArgs.cs
- JsonWriter.cs
- MasterPageParser.cs
- XmlQueryOutput.cs
- DefaultTextStoreTextComposition.cs
- DataSourceCacheDurationConverter.cs
- ScopeCompiler.cs
- OleDbCommandBuilder.cs
- EmptyTextWriter.cs
- NativeMethods.cs
- SvcFileManager.cs
- InheritanceContextChangedEventManager.cs
- Visual3DCollection.cs
- TrackBarRenderer.cs
- HttpCookiesSection.cs
- XmlDataImplementation.cs
- CompiledIdentityConstraint.cs
- Translator.cs
- FaultPropagationQuery.cs
- CommonProperties.cs
- AsyncOperationContext.cs
- SafeReadContext.cs
- CAGDesigner.cs
- InertiaTranslationBehavior.cs
- SqlBinder.cs
- AudioFileOut.cs
- ModelTypeConverter.cs
- List.cs
- PointLightBase.cs
- VisualBasicSettings.cs
- PointLight.cs
- NamespaceEmitter.cs
- ServiceBehaviorElementCollection.cs
- JpegBitmapEncoder.cs
- MethodToken.cs
- ETagAttribute.cs
- SplitContainer.cs
- cookieexception.cs
- InternalConfigEventArgs.cs
- DataGridViewHeaderCell.cs
- KerberosReceiverSecurityToken.cs
- ReadOnlyState.cs
- WSFederationHttpSecurity.cs
- TransactionFlowBindingElementImporter.cs
- Property.cs
- InternalPermissions.cs
- OleDbParameter.cs
- WorkBatch.cs
- RegexTree.cs
- GeneralTransform.cs
- Pkcs7Recipient.cs
- DateTimeConstantAttribute.cs
- EntityStoreSchemaFilterEntry.cs
- ModifierKeysConverter.cs
- GlyphCollection.cs
- ReferentialConstraint.cs
- PathTooLongException.cs
- DSASignatureDeformatter.cs
- __Filters.cs
- HighContrastHelper.cs
- DesignerSerializationOptionsAttribute.cs
- SqlGatherProducedAliases.cs
- InkCanvas.cs
- ListChunk.cs
- ErrorStyle.cs
- MachineKeySection.cs
- sapiproxy.cs
- SourceFilter.cs
- HeaderedItemsControl.cs
- UnicodeEncoding.cs
- ValuePattern.cs
- ExtensionWindowHeader.cs
- SmiConnection.cs
- OdbcConnectionString.cs
- PersistenceProviderDirectory.cs
- IIS7WorkerRequest.cs
- ChannelBase.cs
- WSFederationHttpBinding.cs
- ValidatorUtils.cs
- BitmapEffectDrawingContextWalker.cs
- FigureParaClient.cs
- XsltInput.cs
- AuthenticatingEventArgs.cs
- BindingListCollectionView.cs
- RelationshipType.cs
- ObjectPersistData.cs
- WebChannelFactory.cs
- DataGridViewRowStateChangedEventArgs.cs
- FileBasedResourceGroveler.cs
- Component.cs
- PackageDigitalSignatureManager.cs
- XPathItem.cs