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
- HtmlEncodedRawTextWriter.cs
- ItemsPanelTemplate.cs
- InstanceKey.cs
- ContractInferenceHelper.cs
- X500Name.cs
- WebPartsSection.cs
- DateTimeUtil.cs
- AttributeUsageAttribute.cs
- IdentityHolder.cs
- _LoggingObject.cs
- RefreshPropertiesAttribute.cs
- ReaderWriterLock.cs
- MULTI_QI.cs
- SchemaElementLookUpTableEnumerator.cs
- VersionValidator.cs
- DateTimeConverter.cs
- TypeConstant.cs
- WeakReference.cs
- HttpModulesSection.cs
- ActivityDesigner.cs
- MsdtcWrapper.cs
- WebAdminConfigurationHelper.cs
- InputLanguageCollection.cs
- LicenseManager.cs
- MdbDataFileEditor.cs
- Relationship.cs
- URLAttribute.cs
- Evaluator.cs
- DataSetMappper.cs
- dataprotectionpermission.cs
- DiscoveryReference.cs
- SocketSettings.cs
- DiagnosticsElement.cs
- OutputCacheEntry.cs
- OperationFormatStyle.cs
- HandlerMappingMemo.cs
- xml.cs
- ClientScriptManagerWrapper.cs
- SqlDependency.cs
- PartitionedStream.cs
- FileLogRecordStream.cs
- XmlSchemaInferenceException.cs
- TraceUtils.cs
- IResourceProvider.cs
- LocalBuilder.cs
- XmlSchemaInfo.cs
- NominalTypeEliminator.cs
- TdsParserStaticMethods.cs
- HttpValueCollection.cs
- ProxyAttribute.cs
- PrivilegeNotHeldException.cs
- KoreanLunisolarCalendar.cs
- ContextStack.cs
- ViewPort3D.cs
- DbConnectionPoolGroupProviderInfo.cs
- HttpCookiesSection.cs
- CodeGenerator.cs
- UserControlDesigner.cs
- GZipDecoder.cs
- TypeTypeConverter.cs
- ParameterInfo.cs
- _DynamicWinsockMethods.cs
- RadioButton.cs
- UserControlCodeDomTreeGenerator.cs
- Message.cs
- FileLogRecordEnumerator.cs
- TextShapeableCharacters.cs
- _NegotiateClient.cs
- HttpServerChannel.cs
- RelatedView.cs
- CallSiteHelpers.cs
- Boolean.cs
- TiffBitmapDecoder.cs
- ObjectDataSourceDisposingEventArgs.cs
- UserControlParser.cs
- Hashtable.cs
- UserControl.cs
- RouteUrlExpressionBuilder.cs
- Lease.cs
- TextEndOfSegment.cs
- PagerSettings.cs
- ValidateNames.cs
- PresentationAppDomainManager.cs
- Script.cs
- TreeViewAutomationPeer.cs
- Propagator.ExtentPlaceholderCreator.cs
- CommandTreeTypeHelper.cs
- TemplateXamlParser.cs
- XPathScanner.cs
- StorageEntityContainerMapping.cs
- ObjectCacheSettings.cs
- StateChangeEvent.cs
- DynamicArgumentDesigner.xaml.cs
- CompModSwitches.cs
- ComAdminWrapper.cs
- BypassElementCollection.cs
- CardSpaceSelector.cs
- ProcessHostConfigUtils.cs
- LinqDataSourceHelper.cs
- WebPartTransformer.cs