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
- SecurityRuntime.cs
- PropertyGrid.cs
- XamlContextStack.cs
- OdbcDataReader.cs
- EllipseGeometry.cs
- WebPartEditVerb.cs
- XmlWellformedWriterHelpers.cs
- OperationSelectorBehavior.cs
- DbConnectionPoolGroupProviderInfo.cs
- AccessKeyManager.cs
- MenuScrollingVisibilityConverter.cs
- SafeNativeMethods.cs
- SoapBinding.cs
- objectquery_tresulttype.cs
- VisualBrush.cs
- StreamResourceInfo.cs
- ToolStripStatusLabel.cs
- HttpGetProtocolImporter.cs
- ElementFactory.cs
- SortableBindingList.cs
- WebColorConverter.cs
- OleDbError.cs
- RevocationPoint.cs
- DispatcherOperation.cs
- EnterpriseServicesHelper.cs
- BufferAllocator.cs
- PartialCachingAttribute.cs
- SiteMapNodeCollection.cs
- WsatConfiguration.cs
- SyndicationDeserializer.cs
- BuildManager.cs
- ClaimSet.cs
- MultipleCopiesCollection.cs
- recordstate.cs
- HeaderCollection.cs
- RelationshipDetailsCollection.cs
- PropertyChange.cs
- PreservationFileReader.cs
- DocumentSequenceHighlightLayer.cs
- TextSimpleMarkerProperties.cs
- WebBrowserEvent.cs
- NumberSubstitution.cs
- MediaElement.cs
- IFormattable.cs
- hresults.cs
- Debug.cs
- SafeHandles.cs
- DocumentsTrace.cs
- CodeCompileUnit.cs
- DataControlLinkButton.cs
- PagedDataSource.cs
- KeyTimeConverter.cs
- JsonServiceDocumentSerializer.cs
- WorkItem.cs
- VectorCollectionValueSerializer.cs
- SystemNetHelpers.cs
- AnnotationMap.cs
- LineBreakRecord.cs
- ActivationArguments.cs
- HtmlMeta.cs
- IntranetCredentialPolicy.cs
- XmlSerializerSection.cs
- TypeUtil.cs
- NamespaceDecl.cs
- DataGridViewUtilities.cs
- EdmType.cs
- ExceptionUtil.cs
- SecuritySessionServerSettings.cs
- RepeatButton.cs
- MemoryMappedFile.cs
- LoginCancelEventArgs.cs
- AccessDataSource.cs
- WmlCommandAdapter.cs
- StateDesigner.CommentLayoutGlyph.cs
- InputReferenceExpression.cs
- WebRequestModuleElementCollection.cs
- WindowProviderWrapper.cs
- DecimalAnimationUsingKeyFrames.cs
- StructuredTypeEmitter.cs
- InterleavedZipPartStream.cs
- HttpApplicationStateBase.cs
- ConfigXmlAttribute.cs
- RuleAttributes.cs
- ListViewCancelEventArgs.cs
- InputBinder.cs
- ParameterModifier.cs
- FontFamilyIdentifier.cs
- ReliabilityContractAttribute.cs
- ContextMenuStrip.cs
- VideoDrawing.cs
- WindowsListBox.cs
- InvalidDataException.cs
- ListViewUpdateEventArgs.cs
- PngBitmapDecoder.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ServiceHostingEnvironment.cs
- _ChunkParse.cs
- AppDomain.cs
- XmlCDATASection.cs
- FixedElement.cs