Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextElementCollection.cs
- KeyValuePairs.cs
- TextTrailingWordEllipsis.cs
- ToolZone.cs
- HyperLinkStyle.cs
- SafeHandles.cs
- WebPartCollection.cs
- TemplatedMailWebEventProvider.cs
- PrintingPermissionAttribute.cs
- CategoryValueConverter.cs
- WebCategoryAttribute.cs
- BuildResult.cs
- MailAddress.cs
- XNodeValidator.cs
- MissingManifestResourceException.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- RoutedEventValueSerializer.cs
- SettingsBindableAttribute.cs
- HtmlInputControl.cs
- Psha1DerivedKeyGenerator.cs
- SizeConverter.cs
- HttpMethodConstraint.cs
- BuildTopDownAttribute.cs
- PropertyIDSet.cs
- BinaryKeyIdentifierClause.cs
- activationcontext.cs
- SiblingIterators.cs
- DataGridViewComboBoxEditingControl.cs
- WebHostedComPlusServiceHost.cs
- RequestedSignatureDialog.cs
- DateTimeConstantAttribute.cs
- MethodExecutor.cs
- FilterElement.cs
- ReaderWriterLockWrapper.cs
- TextDocumentView.cs
- FunctionImportElement.cs
- DocumentPageViewAutomationPeer.cs
- ResourceExpressionBuilder.cs
- WindowsMenu.cs
- AlphaSortedEnumConverter.cs
- StylusLogic.cs
- InternalSafeNativeMethods.cs
- FieldInfo.cs
- DispatcherObject.cs
- SimplePropertyEntry.cs
- SchemaComplexType.cs
- SoapSchemaExporter.cs
- FormView.cs
- ScriptBehaviorDescriptor.cs
- SystemTcpStatistics.cs
- CoTaskMemHandle.cs
- AnnotationObservableCollection.cs
- IISMapPath.cs
- NotifyParentPropertyAttribute.cs
- shaperfactory.cs
- CaseInsensitiveOrdinalStringComparer.cs
- WebPartEditorCancelVerb.cs
- ComponentEvent.cs
- GridViewCommandEventArgs.cs
- HandoffBehavior.cs
- TransformCryptoHandle.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TableLayout.cs
- XmlAttributeProperties.cs
- XomlCompilerError.cs
- HtmlControlPersistable.cs
- EntityUtil.cs
- Logging.cs
- WebServiceTypeData.cs
- HelpInfo.cs
- ViewEvent.cs
- SimpleMailWebEventProvider.cs
- Rotation3DAnimationUsingKeyFrames.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ControlBuilder.cs
- LogicalExpr.cs
- ItemCollection.cs
- Slider.cs
- XsltOutput.cs
- ListViewItem.cs
- DataGridViewColumnStateChangedEventArgs.cs
- FileDataSourceCache.cs
- DataMemberConverter.cs
- CompressionTracing.cs
- BeginStoryboard.cs
- WindowsListViewSubItem.cs
- MouseDevice.cs
- QualificationDataItem.cs
- ItemPager.cs
- ExpressionPrefixAttribute.cs
- AutomationPatternInfo.cs
- ContentPlaceHolderDesigner.cs
- DataControlFieldHeaderCell.cs
- SecurityAccessDeniedException.cs
- Bookmark.cs
- XmlTextReader.cs
- MethodBody.cs
- PluggableProtocol.cs
- SmtpDigestAuthenticationModule.cs
- SafeProcessHandle.cs