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
- RectAnimationClockResource.cs
- SmiContext.cs
- TextReader.cs
- ApplicationException.cs
- FormatConvertedBitmap.cs
- PerformanceCounterTraceRecord.cs
- DecoderNLS.cs
- ParameterBuilder.cs
- ExtractorMetadata.cs
- PasswordTextNavigator.cs
- MergeEnumerator.cs
- DataServiceBuildProvider.cs
- PrintControllerWithStatusDialog.cs
- mediaeventshelper.cs
- HwndHost.cs
- Button.cs
- OleDragDropHandler.cs
- HighContrastHelper.cs
- ResolvedKeyFrameEntry.cs
- HttpCookiesSection.cs
- EventDescriptor.cs
- EdmMember.cs
- ExceptionValidationRule.cs
- DataGridColumn.cs
- SHA256.cs
- TagNameToTypeMapper.cs
- SettingsAttributes.cs
- TypeDescriptionProvider.cs
- JsonFormatGeneratorStatics.cs
- MapPathBasedVirtualPathProvider.cs
- NamespaceQuery.cs
- SplitterPanel.cs
- ColorComboBox.cs
- MenuItem.cs
- VarRefManager.cs
- Completion.cs
- FunctionOverloadResolver.cs
- Win32.cs
- BindingSource.cs
- OutputScope.cs
- ProgramPublisher.cs
- CodeAttributeDeclaration.cs
- ImageButton.cs
- InfoCardTrace.cs
- HashAlgorithm.cs
- LeaseManager.cs
- ByteAnimationUsingKeyFrames.cs
- CalendarAutomationPeer.cs
- DbConnectionPoolOptions.cs
- ExpressionDumper.cs
- DisplayNameAttribute.cs
- RelationshipType.cs
- LinqDataSourceInsertEventArgs.cs
- HostElement.cs
- SoapInteropTypes.cs
- _Connection.cs
- WebServiceClientProxyGenerator.cs
- WeakReadOnlyCollection.cs
- TraceHandlerErrorFormatter.cs
- SettingsSection.cs
- BindingManagerDataErrorEventArgs.cs
- PointLight.cs
- GenericTypeParameterBuilder.cs
- DataPagerField.cs
- OrderedEnumerableRowCollection.cs
- OrCondition.cs
- QilValidationVisitor.cs
- _ProxyChain.cs
- AxHost.cs
- DynamicQueryableWrapper.cs
- Vector3D.cs
- ToolStripPanel.cs
- RotateTransform3D.cs
- TimersDescriptionAttribute.cs
- WorkflowServiceInstance.cs
- DataListItemEventArgs.cs
- QueryResponse.cs
- RegexWorker.cs
- QueueProcessor.cs
- MetadataArtifactLoaderFile.cs
- SessionEndedEventArgs.cs
- OdbcConnectionString.cs
- QilCloneVisitor.cs
- InputLanguage.cs
- XamlStackWriter.cs
- RelationshipDetailsCollection.cs
- TableCellsCollectionEditor.cs
- GB18030Encoding.cs
- recordstatefactory.cs
- WindowAutomationPeer.cs
- IProvider.cs
- Image.cs
- TypeLoadException.cs
- Evaluator.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- Publisher.cs
- RoutedPropertyChangedEventArgs.cs
- DataContext.cs
- SingleConverter.cs
- StreamWriter.cs