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
- ErrorBehavior.cs
- AssemblyCache.cs
- PageWrapper.cs
- HideDisabledControlAdapter.cs
- SemanticResolver.cs
- NumericPagerField.cs
- SystemIcmpV6Statistics.cs
- XmlNodeChangedEventArgs.cs
- PointLight.cs
- UriParserTemplates.cs
- DependencySource.cs
- ColorContextHelper.cs
- NullableBoolConverter.cs
- LogEntrySerializer.cs
- WorkflowDefinitionContext.cs
- ApplicationException.cs
- ExtenderProvidedPropertyAttribute.cs
- SqlCacheDependencySection.cs
- ZipIOExtraField.cs
- EditingCoordinator.cs
- MasterPage.cs
- SpellerError.cs
- DataGridViewIntLinkedList.cs
- InvokePattern.cs
- FileVersion.cs
- StateManagedCollection.cs
- DataGridRelationshipRow.cs
- DbUpdateCommandTree.cs
- X509DefaultServiceCertificateElement.cs
- AsyncCompletedEventArgs.cs
- ToolStripRendererSwitcher.cs
- XMLDiffLoader.cs
- ToolStripContextMenu.cs
- DrawingBrush.cs
- WindowHideOrCloseTracker.cs
- CompiledQueryCacheEntry.cs
- StorageFunctionMapping.cs
- ScriptBehaviorDescriptor.cs
- shaperfactoryquerycachekey.cs
- AsymmetricSignatureDeformatter.cs
- TableRow.cs
- Mouse.cs
- COMException.cs
- DynamicResourceExtensionConverter.cs
- RequestQueryProcessor.cs
- PointKeyFrameCollection.cs
- VersionedStream.cs
- TileBrush.cs
- HttpConfigurationContext.cs
- HttpListenerRequestTraceRecord.cs
- DefaultShape.cs
- FileDataSourceCache.cs
- UserInitiatedRoutedEventPermission.cs
- ImageIndexConverter.cs
- CounterCreationDataCollection.cs
- SingleKeyFrameCollection.cs
- EventPrivateKey.cs
- VerticalAlignConverter.cs
- Vector3DCollection.cs
- DoubleAnimation.cs
- COM2Properties.cs
- Process.cs
- BufferBuilder.cs
- Rotation3DAnimation.cs
- ToolStripRenderer.cs
- XmlProcessingInstruction.cs
- EncodedStreamFactory.cs
- FlowLayoutPanel.cs
- RawStylusInput.cs
- CurrentTimeZone.cs
- SSmlParser.cs
- CfgParser.cs
- AtlasWeb.Designer.cs
- QueueProcessor.cs
- SessionState.cs
- SqlCaseSimplifier.cs
- RegisteredScript.cs
- CanExecuteRoutedEventArgs.cs
- CapabilitiesRule.cs
- StatusBarPanelClickEvent.cs
- Unit.cs
- ClientUrlResolverWrapper.cs
- VSWCFServiceContractGenerator.cs
- WebPartConnectionsCancelVerb.cs
- TextElementEditingBehaviorAttribute.cs
- CrossAppDomainChannel.cs
- SetStoryboardSpeedRatio.cs
- EmbeddedMailObjectsCollection.cs
- SafeWaitHandle.cs
- EmptyControlCollection.cs
- WizardForm.cs
- TextBounds.cs
- StylusPointDescription.cs
- PersonalizationStateInfoCollection.cs
- HtmlShim.cs
- __ComObject.cs
- XXXInfos.cs
- ThreadStartException.cs
- ClientType.cs
- x509store.cs