Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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;
///
///
///
/// 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
- XmlSchemaAttributeGroupRef.cs
- SynchronizedInputAdaptor.cs
- PrePostDescendentsWalker.cs
- ConfigurationException.cs
- LocatorPart.cs
- DifferencingCollection.cs
- IgnoreFlushAndCloseStream.cs
- Parser.cs
- ServiceInfo.cs
- OleDragDropHandler.cs
- ToolStripButton.cs
- DateBoldEvent.cs
- ExtensionWindowHeader.cs
- ProxyFragment.cs
- mediaclock.cs
- _AutoWebProxyScriptWrapper.cs
- MailWriter.cs
- unitconverter.cs
- ContainsSearchOperator.cs
- Point3DKeyFrameCollection.cs
- CoTaskMemHandle.cs
- MethodToken.cs
- CodeDelegateInvokeExpression.cs
- filewebrequest.cs
- CheckBox.cs
- SHA1Managed.cs
- MonthCalendar.cs
- Executor.cs
- RoleBoolean.cs
- PixelFormatConverter.cs
- ValidatingCollection.cs
- ToolStripPanelRow.cs
- MailHeaderInfo.cs
- WindowsToolbarAsMenu.cs
- _LazyAsyncResult.cs
- IndexedEnumerable.cs
- unsafenativemethodstextservices.cs
- LocalizationParserHooks.cs
- XmlQuerySequence.cs
- DocumentPaginator.cs
- FontFamily.cs
- ImageIndexConverter.cs
- log.cs
- ApplicationFileParser.cs
- CommandCollectionEditor.cs
- SBCSCodePageEncoding.cs
- LayoutEditorPart.cs
- XmlILStorageConverter.cs
- ReadOnlyDictionary.cs
- AnnotationStore.cs
- ProxyGenerationError.cs
- SQLInt32Storage.cs
- TemplateKeyConverter.cs
- UnmanagedMemoryStream.cs
- KnownTypesHelper.cs
- MulticastNotSupportedException.cs
- EdmConstants.cs
- DataStorage.cs
- Input.cs
- DocumentXPathNavigator.cs
- Guid.cs
- Speller.cs
- ToolStripSystemRenderer.cs
- PropertyAccessVisitor.cs
- WebPartCloseVerb.cs
- AQNBuilder.cs
- PlatformCulture.cs
- RectangleGeometry.cs
- OdbcInfoMessageEvent.cs
- Point3DCollection.cs
- AnonymousIdentificationModule.cs
- clipboard.cs
- PerformanceCountersElement.cs
- RuleSettings.cs
- EntryWrittenEventArgs.cs
- ListMarkerLine.cs
- TemplateContentLoader.cs
- DesignerOptions.cs
- SoapRpcServiceAttribute.cs
- MsmqIntegrationBindingElement.cs
- ColorConvertedBitmap.cs
- DataSet.cs
- SrgsText.cs
- cookiecollection.cs
- DbgUtil.cs
- CellNormalizer.cs
- MultiplexingFormatMapping.cs
- MinimizableAttributeTypeConverter.cs
- ActiveXHelper.cs
- RSAProtectedConfigurationProvider.cs
- SQLDecimal.cs
- ToolStripLocationCancelEventArgs.cs
- BufferBuilder.cs
- NonSerializedAttribute.cs
- SqlGenericUtil.cs
- WindowsTokenRoleProvider.cs
- HttpServerVarsCollection.cs
- AutomationIdentifier.cs
- QueryLifecycle.cs
- SourceFileBuildProvider.cs