Code:
/ 4.0 / 4.0 / 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;
///
///
///
/// ExtenderProvidedPropertyAttribute is an attribute that marks that a property
/// was actually offered up by and extender provider.
///
///
[AttributeUsage(AttributeTargets.All)]
public sealed class ExtenderProvidedPropertyAttribute : Attribute {
private PropertyDescriptor extenderProperty;
private IExtenderProvider provider;
private Type receiverType;
///
/// 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;
///
///
///
/// ExtenderProvidedPropertyAttribute is an attribute that marks that a property
/// was actually offered up by and extender provider.
///
///
[AttributeUsage(AttributeTargets.All)]
public sealed class ExtenderProvidedPropertyAttribute : Attribute {
private PropertyDescriptor extenderProperty;
private IExtenderProvider provider;
private Type receiverType;
///
/// 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
- IOException.cs
- XPathNodeInfoAtom.cs
- FastPropertyAccessor.cs
- Hex.cs
- SerializationUtilities.cs
- ManagedWndProcTracker.cs
- EditingCommands.cs
- QueryParameter.cs
- AssemblyResourceLoader.cs
- ProfileManager.cs
- FastEncoderWindow.cs
- LabelAutomationPeer.cs
- Mapping.cs
- WebPartEventArgs.cs
- SamlAuthenticationClaimResource.cs
- ColumnClickEvent.cs
- XmlRawWriterWrapper.cs
- NameTable.cs
- GeometryConverter.cs
- SecurityDescriptor.cs
- securitycriticaldataClass.cs
- FontEmbeddingManager.cs
- Executor.cs
- SchemaMapping.cs
- ProcessHost.cs
- Rect3D.cs
- AutoSizeComboBox.cs
- SoapClientProtocol.cs
- TextParaClient.cs
- SecureStringHasher.cs
- ConfigurationElementCollection.cs
- NodeFunctions.cs
- CustomCategoryAttribute.cs
- RegexGroupCollection.cs
- RegisteredDisposeScript.cs
- XmlSchemaGroupRef.cs
- Monitor.cs
- ClickablePoint.cs
- RealizedColumnsBlock.cs
- CollectionBuilder.cs
- ToolStripContentPanelRenderEventArgs.cs
- ValidationUtility.cs
- StreamedWorkflowDefinitionContext.cs
- Package.cs
- CompensatableSequenceActivity.cs
- XmlSchemaCompilationSettings.cs
- DoubleStorage.cs
- Button.cs
- IteratorFilter.cs
- MultiPageTextView.cs
- CellParagraph.cs
- HttpFileCollection.cs
- HealthMonitoringSectionHelper.cs
- EventLogQuery.cs
- CornerRadiusConverter.cs
- CodeSnippetStatement.cs
- FontWeight.cs
- UnmanagedMemoryStreamWrapper.cs
- WindowCollection.cs
- XsdBuilder.cs
- SystemIPv6InterfaceProperties.cs
- StickyNote.cs
- ResolvedKeyFrameEntry.cs
- NameSpaceEvent.cs
- CodeDomConfigurationHandler.cs
- ProvidersHelper.cs
- SoapCommonClasses.cs
- TableLayoutStyleCollection.cs
- CallTemplateAction.cs
- HtmlInputButton.cs
- MessageQueue.cs
- BaseCodeDomTreeGenerator.cs
- ObjectTag.cs
- Speller.cs
- CheckBoxBaseAdapter.cs
- CellPartitioner.cs
- StaticFileHandler.cs
- RequestCache.cs
- DBParameter.cs
- ErrorHandler.cs
- IBuiltInEvidence.cs
- XmlCompatibilityReader.cs
- documentsequencetextview.cs
- RowCache.cs
- ExceptionNotification.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- TextDecorationCollection.cs
- odbcmetadatacolumnnames.cs
- LockCookie.cs
- EmptyQuery.cs
- LicenseException.cs
- WebConfigManager.cs
- _FixedSizeReader.cs
- ElementNotEnabledException.cs
- HttpWriter.cs
- HandleRef.cs
- DynamicPropertyHolder.cs
- EncryptedXml.cs
- WorkflowApplicationTerminatedException.cs
- ListControlConvertEventArgs.cs