Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ImageUrlEditor.cs
- RuntimeHelpers.cs
- EllipseGeometry.cs
- ResourceDescriptionAttribute.cs
- SolidColorBrush.cs
- ServiceNotStartedException.cs
- ProviderMetadata.cs
- DetailsViewDeletedEventArgs.cs
- DataControlButton.cs
- ClipboardData.cs
- RepeatButtonAutomationPeer.cs
- SvcMapFileLoader.cs
- DataSetMappper.cs
- PauseStoryboard.cs
- errorpatternmatcher.cs
- TemplatePropertyEntry.cs
- IsolatedStoragePermission.cs
- HtmlInputFile.cs
- Thread.cs
- ProfileWorkflowElement.cs
- FormClosingEvent.cs
- NumericUpDownAcceleration.cs
- Point3DConverter.cs
- TraceContextRecord.cs
- WebEvents.cs
- Path.cs
- ToolBarTray.cs
- RowUpdatedEventArgs.cs
- AutomationEvent.cs
- ContextDataSource.cs
- PointAnimationBase.cs
- TextEditorLists.cs
- MouseBinding.cs
- ToolBarOverflowPanel.cs
- securitycriticaldataformultiplegetandset.cs
- Walker.cs
- ShimAsPublicXamlType.cs
- HiddenFieldDesigner.cs
- UnsafeNativeMethods.cs
- XmlC14NWriter.cs
- EntitySet.cs
- EnumUnknown.cs
- RIPEMD160.cs
- AssociationTypeEmitter.cs
- TextEndOfParagraph.cs
- DatatypeImplementation.cs
- ArrayElementGridEntry.cs
- UIElement.cs
- XPathParser.cs
- ByteConverter.cs
- TraceUtility.cs
- TreeNodeStyleCollection.cs
- RawStylusActions.cs
- FileNotFoundException.cs
- HttpWebRequestElement.cs
- IteratorFilter.cs
- QueryAccessibilityHelpEvent.cs
- OleCmdHelper.cs
- CodeDomConfigurationHandler.cs
- NamedPermissionSet.cs
- SqlDuplicator.cs
- XmlSchemaInferenceException.cs
- SqlErrorCollection.cs
- XmlAtomicValue.cs
- XmlDigitalSignatureProcessor.cs
- ButtonFieldBase.cs
- Preprocessor.cs
- DataGridViewToolTip.cs
- XhtmlTextWriter.cs
- Int16Converter.cs
- MessageQueueException.cs
- ExtendedProperty.cs
- PropertyConverter.cs
- GC.cs
- SessionStateContainer.cs
- ExpressionVisitor.cs
- DiffuseMaterial.cs
- EventRouteFactory.cs
- httpapplicationstate.cs
- InputReportEventArgs.cs
- EncoderNLS.cs
- NavigateEvent.cs
- WinEventQueueItem.cs
- MulticastDelegate.cs
- ALinqExpressionVisitor.cs
- Rules.cs
- Quaternion.cs
- HtmlToClrEventProxy.cs
- RankException.cs
- _ListenerAsyncResult.cs
- ToolBarTray.cs
- DocumentPageView.cs
- DependencyPropertyChangedEventArgs.cs
- ExpressionEditorAttribute.cs
- XamlTreeBuilderBamlRecordWriter.cs
- MessageHeaderAttribute.cs
- XmlAttribute.cs
- FocusTracker.cs
- BulletedList.cs
- SectionVisual.cs