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
- GroupBoxAutomationPeer.cs
- XmlSchemaSubstitutionGroup.cs
- SortedList.cs
- FrameworkObject.cs
- ToolboxComponentsCreatingEventArgs.cs
- AuthenticationConfig.cs
- ResourceExpression.cs
- Metadata.cs
- HttpCachePolicyWrapper.cs
- EncryptedType.cs
- EntityContainerEntitySet.cs
- DataKeyArray.cs
- HostSecurityManager.cs
- DataControlCommands.cs
- TabControlDesigner.cs
- CreateParams.cs
- DataGridViewTextBoxColumn.cs
- TraceContext.cs
- PriorityRange.cs
- XamlPointCollectionSerializer.cs
- FixedDocumentPaginator.cs
- XslTransform.cs
- SystemIPGlobalProperties.cs
- PresentationAppDomainManager.cs
- SqlBinder.cs
- ProcessRequestArgs.cs
- BinaryConverter.cs
- AssemblyHash.cs
- Decorator.cs
- CodeIdentifiers.cs
- ViewBox.cs
- Translator.cs
- HtmlInputRadioButton.cs
- SmiEventSink_DeferedProcessing.cs
- HitTestWithGeometryDrawingContextWalker.cs
- WebPartConnectionsEventArgs.cs
- TextMarkerSource.cs
- _UriSyntax.cs
- Visual3D.cs
- BatchParser.cs
- PreviewPageInfo.cs
- ObjectContextServiceProvider.cs
- KeyValuePair.cs
- GlyphCollection.cs
- Metafile.cs
- FormViewUpdateEventArgs.cs
- KeyNotFoundException.cs
- ToolStrip.cs
- MessageQueuePermissionAttribute.cs
- HttpServerVarsCollection.cs
- UdpChannelFactory.cs
- XmlLoader.cs
- activationcontext.cs
- ManipulationDeltaEventArgs.cs
- ObjectHandle.cs
- XsdDataContractImporter.cs
- WindowsToolbarAsMenu.cs
- AjaxFrameworkAssemblyAttribute.cs
- XmlDocumentFragment.cs
- AddingNewEventArgs.cs
- SafeCryptoHandles.cs
- WebPartsPersonalizationAuthorization.cs
- TreeNode.cs
- Rotation3D.cs
- SrgsDocumentParser.cs
- HttpInputStream.cs
- externdll.cs
- DataGridColumnCollection.cs
- WebServiceParameterData.cs
- Deflater.cs
- NodeFunctions.cs
- HwndKeyboardInputProvider.cs
- BaseTreeIterator.cs
- DocumentSchemaValidator.cs
- ReachDocumentReferenceCollectionSerializer.cs
- TypeUsageBuilder.cs
- MetadataArtifactLoaderCompositeFile.cs
- HostProtectionPermission.cs
- ContainerUIElement3D.cs
- MenuCommand.cs
- objectresult_tresulttype.cs
- GeometryModel3D.cs
- MessageSmuggler.cs
- SafeNativeMethodsOther.cs
- ChannelSinkStacks.cs
- JoinCqlBlock.cs
- FillErrorEventArgs.cs
- RadioButtonList.cs
- BuildResult.cs
- XmlSchemaAnnotation.cs
- IdnElement.cs
- TableDetailsCollection.cs
- AppDomainProtocolHandler.cs
- StyleTypedPropertyAttribute.cs
- IncrementalReadDecoders.cs
- FontUnitConverter.cs
- SecurityHelper.cs
- SHA1Managed.cs
- PointLight.cs
- NativeWrapper.cs