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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PKCS1MaskGenerationMethod.cs
- InvalidAsynchronousStateException.cs
- BufferModeSettings.cs
- DtdParser.cs
- ellipse.cs
- OperationResponse.cs
- ScrollItemPattern.cs
- ColumnMapVisitor.cs
- xmlfixedPageInfo.cs
- StrongNamePublicKeyBlob.cs
- TransformerInfo.cs
- DataSourceListEditor.cs
- ByteAnimation.cs
- DetailsViewRow.cs
- Group.cs
- TcpWorkerProcess.cs
- NotifyParentPropertyAttribute.cs
- AutomationProperty.cs
- MarkupCompilePass1.cs
- SamlAssertionKeyIdentifierClause.cs
- Parser.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- XPathSelectionIterator.cs
- DockProviderWrapper.cs
- SoapSchemaMember.cs
- ConnectionManagementSection.cs
- IgnoreFileBuildProvider.cs
- GlyphRunDrawing.cs
- EventArgs.cs
- StaticSiteMapProvider.cs
- SemanticResultValue.cs
- TempFiles.cs
- KnownColorTable.cs
- xml.cs
- TimeSpanValidatorAttribute.cs
- WinFormsSpinner.cs
- ConfigViewGenerator.cs
- TrueReadOnlyCollection.cs
- ExtenderControl.cs
- WebControlAdapter.cs
- CodeCompiler.cs
- GorillaCodec.cs
- EntityContainerEntitySetDefiningQuery.cs
- GrammarBuilderWildcard.cs
- XmlAttributeProperties.cs
- PersistenceTypeAttribute.cs
- DocComment.cs
- Codec.cs
- ValueUtilsSmi.cs
- StyleSheet.cs
- ValueType.cs
- ConstraintCollection.cs
- CorePropertiesFilter.cs
- CodeGroup.cs
- DataGridViewImageCell.cs
- SerializationFieldInfo.cs
- OperationAbortedException.cs
- TableItemPatternIdentifiers.cs
- TraceUtils.cs
- SortKey.cs
- CellCreator.cs
- GcSettings.cs
- TreeView.cs
- ToolStripItemImageRenderEventArgs.cs
- PackagePart.cs
- StandardToolWindows.cs
- WSHttpBindingCollectionElement.cs
- BitmapEffectInput.cs
- StylusShape.cs
- Attribute.cs
- RemotingConfigParser.cs
- GradientStop.cs
- _ConnectOverlappedAsyncResult.cs
- SeparatorAutomationPeer.cs
- DetailsViewCommandEventArgs.cs
- NotCondition.cs
- DataGridViewTextBoxEditingControl.cs
- Vars.cs
- CodeExpressionStatement.cs
- StringResourceManager.cs
- XmlNullResolver.cs
- Point3DCollection.cs
- DataGridItemEventArgs.cs
- TokenBasedSetEnumerator.cs
- IndexedString.cs
- CollectionType.cs
- Parameter.cs
- PtsHelper.cs
- CodeRegionDirective.cs
- LongTypeConverter.cs
- BaseInfoTable.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XD.cs
- VoiceInfo.cs
- ServiceProviders.cs
- PageFunction.cs
- ProxyGenerationError.cs
- ComponentChangingEvent.cs
- XmlArrayItemAttribute.cs
- DataGridPageChangedEventArgs.cs