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
- ModelTreeManager.cs
- RoleService.cs
- PageContentAsyncResult.cs
- FixedSOMFixedBlock.cs
- TeredoHelper.cs
- NamespaceDisplay.xaml.cs
- QuaternionAnimation.cs
- OdbcCommand.cs
- DataGridViewTextBoxColumn.cs
- CheckBoxStandardAdapter.cs
- TemplatedMailWebEventProvider.cs
- DataSourceViewSchemaConverter.cs
- FormatSelectingMessageInspector.cs
- Clock.cs
- SchemaDeclBase.cs
- OperatorExpressions.cs
- KnownTypesProvider.cs
- SinglePageViewer.cs
- PropertyMetadata.cs
- ApplicationDirectory.cs
- SessionStateModule.cs
- XsltConvert.cs
- LayoutTableCell.cs
- SQLInt16.cs
- Receive.cs
- ProjectionPathBuilder.cs
- CodeCommentStatement.cs
- DockPanel.cs
- DispatchChannelSink.cs
- Interlocked.cs
- InternalConfigHost.cs
- ParagraphVisual.cs
- httpstaticobjectscollection.cs
- XamlDesignerSerializationManager.cs
- FrameworkObject.cs
- bindurihelper.cs
- FileDialogCustomPlace.cs
- Pkcs7Recipient.cs
- FixedDocumentSequencePaginator.cs
- FrameworkContextData.cs
- AnnotationAuthorChangedEventArgs.cs
- DataGridViewBindingCompleteEventArgs.cs
- CapiNative.cs
- UnsafeNativeMethodsTablet.cs
- SqlDependencyUtils.cs
- FixedTextBuilder.cs
- ProfileGroupSettings.cs
- ParameterModifier.cs
- ShapingEngine.cs
- RegexCompiler.cs
- LocatorBase.cs
- CommittableTransaction.cs
- ValidationManager.cs
- ColumnMapCopier.cs
- TextLineBreak.cs
- UshortList2.cs
- Certificate.cs
- MulticastOption.cs
- Rule.cs
- HttpDictionary.cs
- RegisteredArrayDeclaration.cs
- BuildProviderAppliesToAttribute.cs
- PreloadedPackages.cs
- CheckoutException.cs
- ListViewCancelEventArgs.cs
- EntityCommand.cs
- _ChunkParse.cs
- DataTableTypeConverter.cs
- InvalidCastException.cs
- SQLBoolean.cs
- OuterGlowBitmapEffect.cs
- ResolveNameEventArgs.cs
- DBParameter.cs
- DictionaryTraceRecord.cs
- XamlSerializationHelper.cs
- ExtensionElementCollection.cs
- ContractsBCL.cs
- FunctionCommandText.cs
- InternalEnumValidatorAttribute.cs
- RadioButtonPopupAdapter.cs
- SelectionUIHandler.cs
- ExpressionNormalizer.cs
- Lease.cs
- Zone.cs
- Timer.cs
- DataSysAttribute.cs
- CommandID.cs
- PropertyCollection.cs
- EventlogProvider.cs
- SafeHandles.cs
- XamlReaderHelper.cs
- AssociationEndMember.cs
- DesignerUtils.cs
- DrawingState.cs
- MemberHolder.cs
- Activator.cs
- SHA512Cng.cs
- NavigationFailedEventArgs.cs
- WebZone.cs
- ReadOnlyHierarchicalDataSource.cs