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
- XmlDocumentSerializer.cs
- PackagePart.cs
- ConfigurationLocation.cs
- StylusLogic.cs
- FilteredDataSetHelper.cs
- TextTreeRootNode.cs
- EventMap.cs
- InternalEnumValidator.cs
- NameValueFileSectionHandler.cs
- TcpTransportBindingElement.cs
- TableRow.cs
- externdll.cs
- KeyValueSerializer.cs
- CqlLexerHelpers.cs
- TreeBuilder.cs
- XmlSerializationReader.cs
- BindValidator.cs
- SubclassTypeValidatorAttribute.cs
- InternalPolicyElement.cs
- CqlWriter.cs
- UpdateCommand.cs
- TransportListener.cs
- PropertyEntry.cs
- DataList.cs
- DataGrid.cs
- ObjectStateManager.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- AppSettingsExpressionEditor.cs
- StringConverter.cs
- xsdvalidator.cs
- HttpCacheParams.cs
- XsdValidatingReader.cs
- EventItfInfo.cs
- ShapeTypeface.cs
- RegexStringValidator.cs
- DoubleLinkList.cs
- FilteredXmlReader.cs
- SqlProfileProvider.cs
- DetailsViewInsertedEventArgs.cs
- EventManager.cs
- mansign.cs
- ConfigUtil.cs
- OracleConnectionStringBuilder.cs
- XmlSchemaCollection.cs
- VectorAnimationBase.cs
- AttributedMetaModel.cs
- Transaction.cs
- AndMessageFilter.cs
- DataViewListener.cs
- AddInProcess.cs
- XsdDuration.cs
- Point.cs
- DynamicRenderer.cs
- XpsFilter.cs
- ObservableCollection.cs
- XmlRawWriterWrapper.cs
- RegexRunner.cs
- NotEqual.cs
- WebServiceHost.cs
- MethodBuilderInstantiation.cs
- ScalarType.cs
- cookieexception.cs
- WebPartVerb.cs
- StackOverflowException.cs
- TagNameToTypeMapper.cs
- SafeCryptoHandles.cs
- ArcSegment.cs
- IndexedGlyphRun.cs
- DataGridDetailsPresenter.cs
- embossbitmapeffect.cs
- PerformanceCounterPermissionEntry.cs
- TemplateEditingFrame.cs
- MissingFieldException.cs
- BitmapEffectvisualstate.cs
- StorageEndPropertyMapping.cs
- RelationshipDetailsRow.cs
- XmlILCommand.cs
- TypeLibConverter.cs
- EntityDataSourceQueryBuilder.cs
- M3DUtil.cs
- Publisher.cs
- ConsoleTraceListener.cs
- ProcessExitedException.cs
- Metadata.cs
- SpellerError.cs
- ToolStripItemClickedEventArgs.cs
- BitmapPalette.cs
- VisualCollection.cs
- MetadataPropertyAttribute.cs
- ParserExtension.cs
- PersonalizationState.cs
- DispatcherSynchronizationContext.cs
- HealthMonitoringSectionHelper.cs
- shaperfactoryquerycachekey.cs
- ObjectListTitleAttribute.cs
- Translator.cs
- WindowAutomationPeer.cs
- HttpContextWrapper.cs
- HMACSHA1.cs
- cookiecollection.cs