Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- documentsequencetextcontainer.cs
- WebBrowsableAttribute.cs
- XamlGridLengthSerializer.cs
- QueryContinueDragEvent.cs
- Lasso.cs
- ISAPIRuntime.cs
- HtmlUtf8RawTextWriter.cs
- WindowHideOrCloseTracker.cs
- shaperfactory.cs
- DiscoveryClientReferences.cs
- Stack.cs
- SqlDataSourceQueryConverter.cs
- Storyboard.cs
- Iis7Helper.cs
- ContentFileHelper.cs
- PaperSize.cs
- HttpStreamMessage.cs
- ParameterExpression.cs
- Material.cs
- FigureParagraph.cs
- RegionData.cs
- PageCopyCount.cs
- CacheMode.cs
- Currency.cs
- StringValueConverter.cs
- EntityTypeEmitter.cs
- Publisher.cs
- SettingsPropertyCollection.cs
- PerformanceCounterLib.cs
- HttpAsyncResult.cs
- ConnectionManagementElementCollection.cs
- FieldMetadata.cs
- RouteParser.cs
- DesignerHelpers.cs
- ShaderEffect.cs
- Char.cs
- DummyDataSource.cs
- DesignerActionList.cs
- TextEditorLists.cs
- ExpressionsCollectionConverter.cs
- WebPartsPersonalization.cs
- XmlNodeComparer.cs
- SafeFindHandle.cs
- PathGeometry.cs
- AnchoredBlock.cs
- XmlAtomicValue.cs
- RadialGradientBrush.cs
- BlobPersonalizationState.cs
- HtmlEmptyTagControlBuilder.cs
- RunWorkerCompletedEventArgs.cs
- XComponentModel.cs
- HiddenField.cs
- SqlExpressionNullability.cs
- ExtenderControl.cs
- M3DUtil.cs
- SecurityElement.cs
- DbConnectionInternal.cs
- WebControl.cs
- SendAgentStatusRequest.cs
- ResXDataNode.cs
- UnicodeEncoding.cs
- SqlDataSourceView.cs
- RoleServiceManager.cs
- ToolStripDropTargetManager.cs
- StringComparer.cs
- PathSegment.cs
- ColumnBinding.cs
- JoinTreeSlot.cs
- PathSegment.cs
- DataBoundControlParameterTarget.cs
- EdmPropertyAttribute.cs
- MimePart.cs
- DropDownList.cs
- CodeDelegateInvokeExpression.cs
- WmpBitmapDecoder.cs
- ClientConfigPaths.cs
- ClientRuntimeConfig.cs
- SqlServices.cs
- VirtualPathProvider.cs
- WebHeaderCollection.cs
- ResourceAttributes.cs
- RequestQueue.cs
- WebServiceErrorEvent.cs
- HuffmanTree.cs
- IssuedTokenParametersElement.cs
- PerformanceCounterCategory.cs
- KeyValuePair.cs
- DefaultExpression.cs
- SmiMetaData.cs
- SqlDataSourceStatusEventArgs.cs
- DictionarySectionHandler.cs
- HttpContextServiceHost.cs
- NullableConverter.cs
- PrintPreviewDialog.cs
- Guid.cs
- HtmlInputButton.cs
- DateTimeSerializationSection.cs
- PageThemeCodeDomTreeGenerator.cs
- UdpDiscoveryEndpoint.cs
- RawStylusInputReport.cs