Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / ComponentModel / ExtenderProvidedPropertyAttribute.cs / 1 / 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
- ItemTypeToolStripMenuItem.cs
- UDPClient.cs
- IProvider.cs
- SafeNativeMemoryHandle.cs
- FactoryMaker.cs
- CodeCompileUnit.cs
- ToolTip.cs
- XmlSchemaSimpleContentExtension.cs
- CheckBoxList.cs
- ServiceDescriptionReflector.cs
- DataGridViewCell.cs
- SqlAliasesReferenced.cs
- SmiContextFactory.cs
- PropertyChangingEventArgs.cs
- XmlSchemaSimpleContentExtension.cs
- WorkflowServiceHostFactory.cs
- AnnotationDocumentPaginator.cs
- EnvelopedSignatureTransform.cs
- DatagridviewDisplayedBandsData.cs
- ZipQueryOperator.cs
- ToolStrip.cs
- IndicFontClient.cs
- Pen.cs
- SID.cs
- WindowsIdentity.cs
- MsmqIntegrationMessageProperty.cs
- DetailsViewPageEventArgs.cs
- ArraySet.cs
- ThreadTrace.cs
- CultureSpecificStringDictionary.cs
- _TLSstream.cs
- SvcMapFile.cs
- MenuAutomationPeer.cs
- OdbcInfoMessageEvent.cs
- DescendentsWalkerBase.cs
- DelegateHelpers.Generated.cs
- CommonXSendMessage.cs
- TemplatePropertyEntry.cs
- TempFiles.cs
- CellIdBoolean.cs
- DecimalConverter.cs
- Zone.cs
- XmlSchemaAnnotation.cs
- TextWriter.cs
- Odbc32.cs
- RoutedEventValueSerializer.cs
- HttpWebRequest.cs
- ToolStripRenderEventArgs.cs
- BuildProviderCollection.cs
- Interlocked.cs
- Label.cs
- XmlNodeChangedEventManager.cs
- BackStopAuthenticationModule.cs
- DataDocumentXPathNavigator.cs
- InteropBitmapSource.cs
- ScriptingJsonSerializationSection.cs
- DefaultSerializationProviderAttribute.cs
- BitVector32.cs
- Pair.cs
- MultipartContentParser.cs
- CommonProperties.cs
- XamlRtfConverter.cs
- EntityDataSourceReferenceGroup.cs
- StaticResourceExtension.cs
- sqlpipe.cs
- SiteMapNodeItem.cs
- CompiledQuery.cs
- DiscoveryExceptionDictionary.cs
- EntityContainerEmitter.cs
- AnimationTimeline.cs
- EditBehavior.cs
- RtfToXamlLexer.cs
- MultipleViewPatternIdentifiers.cs
- QueryExpr.cs
- AppendHelper.cs
- ErrorTableItemStyle.cs
- __ComObject.cs
- ThaiBuddhistCalendar.cs
- contentDescriptor.cs
- ServiceReference.cs
- TrackBar.cs
- XmlILStorageConverter.cs
- HttpCookiesSection.cs
- datacache.cs
- DrawingContextDrawingContextWalker.cs
- TextTreeFixupNode.cs
- TrackPointCollection.cs
- AbsoluteQuery.cs
- DeclarativeCatalogPart.cs
- Splitter.cs
- TreeNode.cs
- ScrollViewerAutomationPeer.cs
- HttpCookiesSection.cs
- FixedSOMElement.cs
- ListChangedEventArgs.cs
- ZipIOExtraFieldZip64Element.cs
- ImageBrush.cs
- RelationshipDetailsRow.cs
- ObjectAnimationUsingKeyFrames.cs
- GridViewUpdatedEventArgs.cs