Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- QilXmlWriter.cs
- ServicesUtilities.cs
- ManagementPath.cs
- ReadOnlyCollectionBase.cs
- Internal.cs
- StaticContext.cs
- FontWeightConverter.cs
- SerializeAbsoluteContext.cs
- ListBase.cs
- ToolStripAdornerWindowService.cs
- SafeThreadHandle.cs
- SeverityFilter.cs
- TypedElement.cs
- DependencyObjectProvider.cs
- StateInitializationDesigner.cs
- HttpPostedFile.cs
- EntityClientCacheEntry.cs
- ContentType.cs
- DeferredSelectedIndexReference.cs
- MarkerProperties.cs
- GridItemPatternIdentifiers.cs
- CaseInsensitiveComparer.cs
- ThicknessKeyFrameCollection.cs
- OleDbException.cs
- XmlWellformedWriterHelpers.cs
- XdrBuilder.cs
- SingleConverter.cs
- DesignerLabelAdapter.cs
- ServiceOperation.cs
- SkewTransform.cs
- DragCompletedEventArgs.cs
- ServiceModelSectionGroup.cs
- TCPListener.cs
- SortedList.cs
- prefixendpointaddressmessagefilter.cs
- CapabilitiesState.cs
- CodeSnippetStatement.cs
- FontFamilyValueSerializer.cs
- ContextStaticAttribute.cs
- StyleCollectionEditor.cs
- RepeaterItem.cs
- ContainerSelectorActiveEvent.cs
- SetStoryboardSpeedRatio.cs
- SimpleBitVector32.cs
- ToolStripDropDownItem.cs
- PassportIdentity.cs
- GPPOINTF.cs
- CompilerGeneratedAttribute.cs
- FormViewDeleteEventArgs.cs
- ColumnResizeUndoUnit.cs
- SqlBinder.cs
- WebPartCloseVerb.cs
- BindingContext.cs
- EncodingNLS.cs
- ReflectionPermission.cs
- ActivityExecutor.cs
- SQLInt64Storage.cs
- HostingEnvironment.cs
- BrowserCapabilitiesCodeGenerator.cs
- PerfProviderCollection.cs
- WeakReferenceList.cs
- SaveFileDialogDesigner.cs
- NamespaceMapping.cs
- CombinedGeometry.cs
- ObjectSet.cs
- RepeaterItem.cs
- XmlSchemas.cs
- KnownTypes.cs
- XsltLibrary.cs
- CodeCommentStatement.cs
- TextRangeAdaptor.cs
- EncryptedPackageFilter.cs
- CharacterMetricsDictionary.cs
- CachingHintValidation.cs
- TrustDriver.cs
- HttpResponseWrapper.cs
- DataTrigger.cs
- EditorResources.cs
- Message.cs
- ResetableIterator.cs
- AxisAngleRotation3D.cs
- OptimizedTemplateContent.cs
- ConnectionStringSettings.cs
- _TimerThread.cs
- DataColumnPropertyDescriptor.cs
- sqlpipe.cs
- WebPermission.cs
- ToolboxItemCollection.cs
- Utils.cs
- ToolStripSeparatorRenderEventArgs.cs
- InsufficientMemoryException.cs
- MarshalByRefObject.cs
- WebBrowserPermission.cs
- NotifyIcon.cs
- BlockUIContainer.cs
- ForEachAction.cs
- KnownBoxes.cs
- MetadataSection.cs
- SqlRewriteScalarSubqueries.cs
- HttpHandler.cs