Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / ComponentConverter.cs / 1 / ComponentConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using Microsoft.Win32; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Runtime.Serialization.Formatters; using System.Runtime.Remoting; using System.Runtime.InteropServices; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class ComponentConverter : ReferenceConverter { ///Provides a type converter to convert component objects to and /// from various other representations. ////// public ComponentConverter(Type type) : base(type) { } ////// Initializes a new instance of the ///class. /// /// /// public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) { return TypeDescriptor.GetProperties(value, attributes); } ///Gets a collection of properties for the type of component /// specified by the value /// parameter. ////// /// public override bool GetPropertiesSupported(ITypeDescriptorContext context) { return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets a value indicating whether this object supports properties using the /// specified context. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using Microsoft.Win32; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Runtime.Serialization.Formatters; using System.Runtime.Remoting; using System.Runtime.InteropServices; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class ComponentConverter : ReferenceConverter { ///Provides a type converter to convert component objects to and /// from various other representations. ////// public ComponentConverter(Type type) : base(type) { } ////// Initializes a new instance of the ///class. /// /// /// public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) { return TypeDescriptor.GetProperties(value, attributes); } ///Gets a collection of properties for the type of component /// specified by the value /// parameter. ////// /// public override bool GetPropertiesSupported(ITypeDescriptorContext context) { return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets a value indicating whether this object supports properties using the /// specified context. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ScriptDescriptor.cs
- ValidatorUtils.cs
- DataGridViewLayoutData.cs
- CodeAccessSecurityEngine.cs
- CryptoStream.cs
- HostedHttpTransportManager.cs
- UserPersonalizationStateInfo.cs
- StrongTypingException.cs
- ElasticEase.cs
- SoapMessage.cs
- ErrorFormatter.cs
- PeerInputChannelListener.cs
- MethodExpr.cs
- TimelineGroup.cs
- ComplexPropertyEntry.cs
- DataGridViewComboBoxColumnDesigner.cs
- ServerType.cs
- AsyncStreamReader.cs
- SamlAuthorizationDecisionStatement.cs
- SerializationSectionGroup.cs
- TextServicesHost.cs
- ObjectTag.cs
- DemultiplexingDispatchMessageFormatter.cs
- XmlSchemaInferenceException.cs
- SmiConnection.cs
- WebBrowserSiteBase.cs
- Encoder.cs
- Assembly.cs
- ResourcesBuildProvider.cs
- GregorianCalendarHelper.cs
- TrackingMemoryStreamFactory.cs
- StructuredTypeEmitter.cs
- BaseProcessor.cs
- SiteMapNode.cs
- InputBindingCollection.cs
- ObjectCacheSettings.cs
- BrowserInteropHelper.cs
- DefaultProxySection.cs
- DataColumnMappingCollection.cs
- TouchesCapturedWithinProperty.cs
- SystemIcmpV6Statistics.cs
- RoleManagerEventArgs.cs
- MultiDataTrigger.cs
- SqlLiftIndependentRowExpressions.cs
- RemoteCryptoTokenProvider.cs
- DataGridViewLinkColumn.cs
- UTF8Encoding.cs
- ReachFixedPageSerializerAsync.cs
- KeyboardNavigation.cs
- ImportRequest.cs
- AccessDataSource.cs
- EventDescriptorCollection.cs
- InstanceCreationEditor.cs
- BooleanConverter.cs
- CheckoutException.cs
- Margins.cs
- FileVersion.cs
- ErrorEventArgs.cs
- ClientRuntimeConfig.cs
- NamespaceQuery.cs
- DescendantOverDescendantQuery.cs
- ResourceManager.cs
- SafeFileMappingHandle.cs
- MessagePropertyFilter.cs
- DataGridViewRowCancelEventArgs.cs
- WindowsListViewItem.cs
- BinaryEditor.cs
- SoapFault.cs
- CardSpaceSelector.cs
- _DisconnectOverlappedAsyncResult.cs
- ArraySortHelper.cs
- TableItemStyle.cs
- NullRuntimeConfig.cs
- MarshalByRefObject.cs
- BufferModesCollection.cs
- RightsDocument.cs
- CallContext.cs
- IPAddress.cs
- RemotingConfigParser.cs
- DataTablePropertyDescriptor.cs
- ListDataBindEventArgs.cs
- DirectoryObjectSecurity.cs
- XhtmlConformanceSection.cs
- GridViewUpdatedEventArgs.cs
- WebPartManagerDesigner.cs
- UTF8Encoding.cs
- ObjectHelper.cs
- SecurityTokenAttachmentMode.cs
- DebugView.cs
- XmlSchemaValidationException.cs
- ServicePointManagerElement.cs
- SecureStringHasher.cs
- MetadataItemEmitter.cs
- VScrollProperties.cs
- RadioButton.cs
- OdbcConnectionOpen.cs
- xmlformatgeneratorstatics.cs
- ExpressionEditorAttribute.cs
- BroadcastEventHelper.cs
- Menu.cs