Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ComponentConverter.cs / 1305376 / 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
- ListenerElementsCollection.cs
- SymLanguageType.cs
- SchemaDeclBase.cs
- PasswordValidationException.cs
- BinHexDecoder.cs
- CrossAppDomainChannel.cs
- WindowPatternIdentifiers.cs
- OperatorExpressions.cs
- EntityStoreSchemaGenerator.cs
- ApplicationFileCodeDomTreeGenerator.cs
- OneOfElement.cs
- LocatorPart.cs
- DCSafeHandle.cs
- Decorator.cs
- X509CertificateRecipientClientCredential.cs
- WindowsIPAddress.cs
- BulletedListEventArgs.cs
- Int32RectValueSerializer.cs
- ObjectDataSourceDisposingEventArgs.cs
- Matrix.cs
- Menu.cs
- Button.cs
- messageonlyhwndwrapper.cs
- DesignerVerb.cs
- AtomicFile.cs
- VoiceInfo.cs
- RoutedEventValueSerializer.cs
- GridViewCommandEventArgs.cs
- MulticastIPAddressInformationCollection.cs
- CLRBindingWorker.cs
- HttpListenerRequest.cs
- SecurityAppliedMessage.cs
- EntityWithChangeTrackerStrategy.cs
- TypeDescriptionProviderAttribute.cs
- WebPartEventArgs.cs
- ArglessEventHandlerProxy.cs
- SamlSubject.cs
- XmlImplementation.cs
- WinFormsSecurity.cs
- HuffModule.cs
- HMACRIPEMD160.cs
- DataGridViewIntLinkedList.cs
- NoPersistScope.cs
- ConfigurationSectionCollection.cs
- DetailsViewUpdatedEventArgs.cs
- Material.cs
- Attributes.cs
- AddInSegmentDirectoryNotFoundException.cs
- DefaultHttpHandler.cs
- TextServicesContext.cs
- TextReader.cs
- ElementUtil.cs
- EntryWrittenEventArgs.cs
- AdornerDecorator.cs
- XmlBaseReader.cs
- RecordManager.cs
- TypePropertyEditor.cs
- QilChoice.cs
- ConnectionManagementSection.cs
- StylusSystemGestureEventArgs.cs
- InputQueueChannelAcceptor.cs
- AssemblyNameProxy.cs
- SystemNetHelpers.cs
- WSSecurityPolicy12.cs
- XmlQueryContext.cs
- MenuStrip.cs
- ExpressionList.cs
- AccessKeyManager.cs
- SynchronizedInputHelper.cs
- EntityProxyFactory.cs
- CompressionTransform.cs
- WindowsStreamSecurityBindingElement.cs
- TextOptionsInternal.cs
- WebPartsPersonalization.cs
- MarkupCompiler.cs
- TimeSpanStorage.cs
- UnsafeNativeMethods.cs
- FormViewInsertEventArgs.cs
- CodePropertyReferenceExpression.cs
- PrePrepareMethodAttribute.cs
- WindowInteropHelper.cs
- Variable.cs
- ValidationEventArgs.cs
- WebPartExportVerb.cs
- ListView.cs
- GACMembershipCondition.cs
- Scene3D.cs
- HttpRequestCacheValidator.cs
- VisualTarget.cs
- PropertyPushdownHelper.cs
- filewebresponse.cs
- panel.cs
- SafeThreadHandle.cs
- WpfSharedXamlSchemaContext.cs
- ToolboxDataAttribute.cs
- X509SubjectKeyIdentifierClause.cs
- ValueTable.cs
- InkCanvasFeedbackAdorner.cs
- CoTaskMemUnicodeSafeHandle.cs
- SamlSubjectStatement.cs