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
- EntityDataSourceContainerNameConverter.cs
- COAUTHIDENTITY.cs
- CoreChannel.cs
- CancellationTokenRegistration.cs
- InternalCache.cs
- CheckBoxRenderer.cs
- EventLogEntryCollection.cs
- SqlEnums.cs
- DataMemberAttribute.cs
- CDSsyncETWBCLProvider.cs
- ModelTreeEnumerator.cs
- DataServiceQuery.cs
- HtmlImage.cs
- ManagedFilter.cs
- StylusPointPropertyId.cs
- Columns.cs
- DuplicateWaitObjectException.cs
- GeneralTransform3DCollection.cs
- SelectionEditor.cs
- TextModifier.cs
- SystemWebCachingSectionGroup.cs
- AssertSection.cs
- ExternalException.cs
- OpCodes.cs
- SiteMapDataSource.cs
- SafePointer.cs
- TextReader.cs
- Emitter.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- Thread.cs
- VScrollBar.cs
- DataBoundControlAdapter.cs
- WebPartTracker.cs
- FieldMetadata.cs
- ListBox.cs
- UInt16Storage.cs
- DrawingContextDrawingContextWalker.cs
- ModelService.cs
- DoubleAnimationBase.cs
- ResetableIterator.cs
- EditorBrowsableAttribute.cs
- FieldNameLookup.cs
- CaseInsensitiveOrdinalStringComparer.cs
- SerializationException.cs
- InputElement.cs
- _ScatterGatherBuffers.cs
- Scalars.cs
- DBConcurrencyException.cs
- InstanceKeyNotReadyException.cs
- FlowDocumentReaderAutomationPeer.cs
- TextTreeRootTextBlock.cs
- TableDetailsRow.cs
- OdbcInfoMessageEvent.cs
- TextEditorMouse.cs
- StrongNameHelpers.cs
- RequestQueue.cs
- OleDbPermission.cs
- InputQueue.cs
- GraphicsPath.cs
- WorkflowApplicationCompletedEventArgs.cs
- NullExtension.cs
- TextEditorLists.cs
- BigInt.cs
- EnumerableRowCollectionExtensions.cs
- LambdaCompiler.Binary.cs
- SectionUpdates.cs
- UnaryExpression.cs
- ToolboxComponentsCreatingEventArgs.cs
- BinaryObjectWriter.cs
- TextElementCollection.cs
- FirstMatchCodeGroup.cs
- _BasicClient.cs
- UIAgentInitializationException.cs
- WindowsHyperlink.cs
- ProxyElement.cs
- EmptyControlCollection.cs
- DataGridViewCellFormattingEventArgs.cs
- Attributes.cs
- WpfSharedBamlSchemaContext.cs
- WebScriptMetadataMessageEncoderFactory.cs
- TextSearch.cs
- OptionUsage.cs
- TypeSystem.cs
- AttachmentCollection.cs
- AdCreatedEventArgs.cs
- ContentPosition.cs
- HtmlToClrEventProxy.cs
- CompilerResults.cs
- Errors.cs
- SqlColumnizer.cs
- RepeaterItem.cs
- ParentQuery.cs
- AlphaSortedEnumConverter.cs
- ListViewTableCell.cs
- TextDocumentView.cs
- TopClause.cs
- ProviderMetadataCachedInformation.cs
- AsymmetricSignatureFormatter.cs
- GlobalProxySelection.cs
- Utils.cs