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; ////// /// [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
- BinaryWriter.cs
- x509utils.cs
- Subset.cs
- XmlDataCollection.cs
- DirectoryNotFoundException.cs
- SchemaTypeEmitter.cs
- EntityCommandExecutionException.cs
- SQLBinary.cs
- CacheMemory.cs
- BaseDataListActionList.cs
- ObjectStateEntryDbDataRecord.cs
- Control.cs
- ToolStripLabel.cs
- GPPOINTF.cs
- BuildManagerHost.cs
- StreamGeometry.cs
- RequestQueryProcessor.cs
- StorageComplexPropertyMapping.cs
- SimpleMailWebEventProvider.cs
- GrabHandleGlyph.cs
- returneventsaver.cs
- XMLDiffLoader.cs
- SQLDecimalStorage.cs
- input.cs
- GridViewRowPresenterBase.cs
- NotImplementedException.cs
- HttpApplication.cs
- PriorityRange.cs
- DeviceFilterDictionary.cs
- UriExt.cs
- ProxyFragment.cs
- ViewGenResults.cs
- BindingSource.cs
- StylusCollection.cs
- HttpGetClientProtocol.cs
- Misc.cs
- WsdlContractConversionContext.cs
- WindowsNonControl.cs
- ProxyElement.cs
- ParserContext.cs
- EdmProviderManifest.cs
- IpcPort.cs
- StrokeIntersection.cs
- NullableIntAverageAggregationOperator.cs
- ResourceDictionaryCollection.cs
- UnionCqlBlock.cs
- ModelItemCollectionImpl.cs
- GridViewRowEventArgs.cs
- PhysicalOps.cs
- AssemblyBuilder.cs
- ChildTable.cs
- ScriptControlDescriptor.cs
- BinaryFormatterSinks.cs
- SQLDouble.cs
- OleDbConnection.cs
- IPEndPoint.cs
- CapabilitiesSection.cs
- IODescriptionAttribute.cs
- Boolean.cs
- figurelength.cs
- Assert.cs
- XPathMultyIterator.cs
- ClonableStack.cs
- AvTraceDetails.cs
- XmlIgnoreAttribute.cs
- ping.cs
- BindStream.cs
- QfeChecker.cs
- LicenseProviderAttribute.cs
- ResourceAttributes.cs
- TransformerConfigurationWizardBase.cs
- XmlParserContext.cs
- PrivilegedConfigurationManager.cs
- CodeComment.cs
- TargetControlTypeAttribute.cs
- MessageQueueInstaller.cs
- UIHelper.cs
- AudioException.cs
- TypeRefElement.cs
- FindCriteriaApril2005.cs
- CompilationUnit.cs
- FixedFlowMap.cs
- RegexInterpreter.cs
- LambdaCompiler.Address.cs
- AssertHelper.cs
- SamlSecurityTokenAuthenticator.cs
- XmlException.cs
- BitmapSourceSafeMILHandle.cs
- TemplateApplicationHelper.cs
- RpcCryptoRequest.cs
- URL.cs
- ContextMenu.cs
- HostingEnvironmentException.cs
- ObjectQuery_EntitySqlExtensions.cs
- ProviderConnectionPointCollection.cs
- _RequestLifetimeSetter.cs
- WindowsNonControl.cs
- XmlSignatureProperties.cs
- ExtensionDataReader.cs
- MenuItemBinding.cs