Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- BufferBuilder.cs
- ResponseStream.cs
- VectorAnimation.cs
- NetCodeGroup.cs
- WebBrowserUriTypeConverter.cs
- BitmapMetadataBlob.cs
- EventLogger.cs
- DataDocumentXPathNavigator.cs
- CollectionEditorDialog.cs
- OdbcReferenceCollection.cs
- ListSourceHelper.cs
- XPathNavigatorKeyComparer.cs
- HtmlImage.cs
- SafeSerializationManager.cs
- ConfigurationException.cs
- SqlUtils.cs
- ReceiveActivity.cs
- DialogDivider.cs
- HttpProxyTransportBindingElement.cs
- RewritingValidator.cs
- TypeBuilder.cs
- BitVec.cs
- Tablet.cs
- ReferentialConstraint.cs
- CodeGenerator.cs
- XmlNodeChangedEventManager.cs
- ImpersonateTokenRef.cs
- PrinterResolution.cs
- FileUtil.cs
- RegistryPermission.cs
- MetadataSection.cs
- DataGridViewMethods.cs
- SignatureDescription.cs
- TypeNameParser.cs
- TcpChannelHelper.cs
- IteratorAsyncResult.cs
- ProgressiveCrcCalculatingStream.cs
- PrintEvent.cs
- LateBoundChannelParameterCollection.cs
- TreeNodeStyleCollection.cs
- CodeGotoStatement.cs
- DefaultProxySection.cs
- SmiEventStream.cs
- MappedMetaModel.cs
- DataGridViewUtilities.cs
- ContextProperty.cs
- PolyBezierSegmentFigureLogic.cs
- XmlSchemaNotation.cs
- SqlInternalConnectionSmi.cs
- BasePattern.cs
- MimeXmlImporter.cs
- WebCategoryAttribute.cs
- QueryStringParameter.cs
- HexParser.cs
- WebScriptEnablingBehavior.cs
- MessageQueueKey.cs
- PolygonHotSpot.cs
- DataGridHeaderBorder.cs
- TraversalRequest.cs
- ProxyAttribute.cs
- BindingExpressionUncommonField.cs
- DecimalAnimationUsingKeyFrames.cs
- ListBase.cs
- ColorDialog.cs
- SafeFileHandle.cs
- ProgressBarAutomationPeer.cs
- HyperLinkStyle.cs
- ZoomPercentageConverter.cs
- DetailsViewRow.cs
- CfgSemanticTag.cs
- HostingEnvironment.cs
- BasicViewGenerator.cs
- DataTransferEventArgs.cs
- TypeElement.cs
- ChtmlCalendarAdapter.cs
- OleDbEnumerator.cs
- FrugalMap.cs
- SafeLibraryHandle.cs
- TextReader.cs
- ReflectionHelper.cs
- Perspective.cs
- FixedTextContainer.cs
- CreateParams.cs
- SimpleBitVector32.cs
- ToolboxItemCollection.cs
- MethodToken.cs
- ProjectedSlot.cs
- OutOfProcStateClientManager.cs
- ExecutionContext.cs
- RepeaterItem.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ReferenceService.cs
- Vector3DAnimationBase.cs
- InvalidPropValue.cs
- StoragePropertyMapping.cs
- SafeNativeMethodsCLR.cs
- CharacterMetricsDictionary.cs
- Walker.cs
- XmlSchemaAttributeGroupRef.cs
- PEFileEvidenceFactory.cs