Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertySourceInfo.cs
- ZipIOLocalFileDataDescriptor.cs
- BinarySecretSecurityToken.cs
- ModulesEntry.cs
- PersistenceMetadataNamespace.cs
- xmlfixedPageInfo.cs
- TreeViewCancelEvent.cs
- QualifiedCellIdBoolean.cs
- LowerCaseStringConverter.cs
- LogicalCallContext.cs
- ConfigurationElementCollection.cs
- SqlCommandBuilder.cs
- Int32AnimationUsingKeyFrames.cs
- RegisterInfo.cs
- Point4D.cs
- ToolTipService.cs
- ColorContext.cs
- SocketAddress.cs
- DataGridTextBox.cs
- StatusCommandUI.cs
- AssemblyName.cs
- OdbcPermission.cs
- SizeFConverter.cs
- MatrixCamera.cs
- WorkflowStateRollbackService.cs
- WebRequestModulesSection.cs
- OptimalTextSource.cs
- XPathNodeIterator.cs
- ManageRequest.cs
- SecurityTokenResolver.cs
- OutputScopeManager.cs
- WebConfigurationHostFileChange.cs
- WebPartCloseVerb.cs
- SessionStateSection.cs
- Item.cs
- ApplicationHost.cs
- AlphabeticalEnumConverter.cs
- DataGridViewIntLinkedList.cs
- MessagePropertyFilter.cs
- DataRow.cs
- CultureTable.cs
- SelectionRangeConverter.cs
- SelectionRangeConverter.cs
- UserPreferenceChangedEventArgs.cs
- NominalTypeEliminator.cs
- LinearGradientBrush.cs
- UIElementParagraph.cs
- DateTimeUtil.cs
- FormViewInsertedEventArgs.cs
- Int32CollectionValueSerializer.cs
- ErrorWrapper.cs
- TextEditorMouse.cs
- CodeNamespace.cs
- CqlWriter.cs
- XmlSecureResolver.cs
- FunctionQuery.cs
- StateElement.cs
- InkCanvasInnerCanvas.cs
- Helper.cs
- GeometryCombineModeValidation.cs
- BitmapImage.cs
- ProfileGroupSettingsCollection.cs
- ProviderConnectionPoint.cs
- XhtmlBasicLinkAdapter.cs
- StringComparer.cs
- ZipFileInfoCollection.cs
- ArgumentValidation.cs
- CharacterMetrics.cs
- NetStream.cs
- SvcFileManager.cs
- XamlGridLengthSerializer.cs
- DataGridItemEventArgs.cs
- SendKeys.cs
- ShaperBuffers.cs
- CompilerTypeWithParams.cs
- FormViewUpdatedEventArgs.cs
- SqlTriggerAttribute.cs
- ComboBox.cs
- UpdateProgress.cs
- PathSegmentCollection.cs
- TextPointerBase.cs
- HttpClientCertificate.cs
- CapabilitiesState.cs
- KnownBoxes.cs
- FlowDocument.cs
- MarshalDirectiveException.cs
- PathTooLongException.cs
- DynamicPropertyReader.cs
- InternalPolicyElement.cs
- ScopelessEnumAttribute.cs
- DynamicMethod.cs
- PolicyException.cs
- OverflowException.cs
- ComponentResourceKeyConverter.cs
- ListBindingHelper.cs
- Axis.cs
- ToolStripSystemRenderer.cs
- SR.cs
- AmbientValueAttribute.cs
- HtmlInputButton.cs