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
- ColorInterpolationModeValidation.cs
- StringAttributeCollection.cs
- ThrowHelper.cs
- SystemIPAddressInformation.cs
- KnownBoxes.cs
- HtmlInputHidden.cs
- CounterCreationDataCollection.cs
- ResizeBehavior.cs
- QilFactory.cs
- FragmentQueryKB.cs
- EventProxy.cs
- FillRuleValidation.cs
- ShaperBuffers.cs
- SqlCacheDependencySection.cs
- ButtonField.cs
- HitTestFilterBehavior.cs
- BamlTreeNode.cs
- SqlRecordBuffer.cs
- UnauthorizedWebPart.cs
- ZipIOLocalFileHeader.cs
- RSAPKCS1KeyExchangeFormatter.cs
- TypeHelper.cs
- MsmqIntegrationSecurityMode.cs
- DBNull.cs
- SocketElement.cs
- WebBrowserEvent.cs
- CrossSiteScriptingValidation.cs
- DataBoundControlAdapter.cs
- DeferredElementTreeState.cs
- QueryUtil.cs
- SqlCacheDependencySection.cs
- HTMLTagNameToTypeMapper.cs
- RegexRunner.cs
- RegexCompilationInfo.cs
- CodeGenerator.cs
- WebPartMinimizeVerb.cs
- ExceptionUtil.cs
- CodeCommentStatement.cs
- Select.cs
- ComponentRenameEvent.cs
- Operators.cs
- UnsafeNativeMethods.cs
- FocusTracker.cs
- ApplicationFileCodeDomTreeGenerator.cs
- FixedSOMTextRun.cs
- OdbcUtils.cs
- SequentialUshortCollection.cs
- TreeBuilder.cs
- SymLanguageVendor.cs
- XmlHelper.cs
- VectorAnimation.cs
- StrictAndMessageFilter.cs
- fixedPageContentExtractor.cs
- ViewBase.cs
- DictionaryBase.cs
- ClientData.cs
- CommandLibraryHelper.cs
- ZipArchive.cs
- RectKeyFrameCollection.cs
- ResourceProviderFactory.cs
- SamlAuthenticationStatement.cs
- TileModeValidation.cs
- MenuItemBinding.cs
- OleDbWrapper.cs
- FixedStringLookup.cs
- ObjectRef.cs
- FieldNameLookup.cs
- DrawingCollection.cs
- InlineCollection.cs
- SurrogateSelector.cs
- SqlParameterCollection.cs
- _TransmitFileOverlappedAsyncResult.cs
- BadImageFormatException.cs
- CompModHelpers.cs
- Calendar.cs
- ADConnectionHelper.cs
- VectorAnimation.cs
- RoutingService.cs
- Comparer.cs
- ConfigXmlAttribute.cs
- TaskFormBase.cs
- CounterSet.cs
- StylusPlugin.cs
- InkCollectionBehavior.cs
- CopyEncoder.cs
- EncryptedPackage.cs
- TargetControlTypeCache.cs
- ValueTypeFixupInfo.cs
- LabelLiteral.cs
- ValidationErrorCollection.cs
- UnsafeNativeMethods.cs
- XmlDocumentFieldSchema.cs
- PseudoWebRequest.cs
- DecimalKeyFrameCollection.cs
- IntSecurity.cs
- ReferenceConverter.cs
- AdPostCacheSubstitution.cs
- StatusBarItemAutomationPeer.cs
- X509IssuerSerialKeyIdentifierClause.cs
- ColumnMapTranslator.cs