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
- MissingMemberException.cs
- DoubleLinkList.cs
- ToolStripScrollButton.cs
- ServicePointManagerElement.cs
- XsdDateTime.cs
- ConfigXmlText.cs
- __ConsoleStream.cs
- AjaxFrameworkAssemblyAttribute.cs
- AuthorizationBehavior.cs
- DbInsertCommandTree.cs
- Win32Native.cs
- FixedSOMElement.cs
- GifBitmapEncoder.cs
- DiagnosticTrace.cs
- Triangle.cs
- CollectionCodeDomSerializer.cs
- QueryRewriter.cs
- OracleFactory.cs
- SafeTokenHandle.cs
- EventProviderWriter.cs
- ImageSourceConverter.cs
- MaterialGroup.cs
- StartFileNameEditor.cs
- MailWebEventProvider.cs
- Point3DAnimation.cs
- XmlMemberMapping.cs
- XmlSerializerFactory.cs
- SymmetricKeyWrap.cs
- HttpClientProtocol.cs
- TypeDescriptionProvider.cs
- HtmlInputPassword.cs
- CodeDomConfigurationHandler.cs
- LabelAutomationPeer.cs
- ConfigurationConverterBase.cs
- CompositeActivityTypeDescriptor.cs
- InputMethodStateTypeInfo.cs
- ConnectionModeReader.cs
- HtmlToClrEventProxy.cs
- ReaderOutput.cs
- SqlGatherConsumedAliases.cs
- invalidudtexception.cs
- CancelEventArgs.cs
- LocalizationParserHooks.cs
- Perspective.cs
- DataGridViewCellMouseEventArgs.cs
- SymbolType.cs
- QueryStringParameter.cs
- AuthenticationManager.cs
- WebPartsPersonalizationAuthorization.cs
- CodeVariableReferenceExpression.cs
- ObjectStateFormatter.cs
- ReflectTypeDescriptionProvider.cs
- PageThemeBuildProvider.cs
- SByteConverter.cs
- GlyphCollection.cs
- BooleanSwitch.cs
- DebugView.cs
- ValidationEventArgs.cs
- Rect3DConverter.cs
- StylusCollection.cs
- ControlType.cs
- RequestTimeoutManager.cs
- InstanceNotFoundException.cs
- Scripts.cs
- UniqueIdentifierService.cs
- OpenTypeCommon.cs
- Action.cs
- TickBar.cs
- Column.cs
- FormsAuthentication.cs
- PrinterSettings.cs
- SoapFormatter.cs
- XmlNodeChangedEventArgs.cs
- IResourceProvider.cs
- Parameter.cs
- MetaModel.cs
- ByteKeyFrameCollection.cs
- DragEventArgs.cs
- EventBuilder.cs
- ToolStripKeyboardHandlingService.cs
- TerminatorSinks.cs
- DataPointer.cs
- GridViewColumnHeader.cs
- X509CertificateCollection.cs
- SqlRowUpdatingEvent.cs
- XhtmlBasicObjectListAdapter.cs
- DataGridPagingPage.cs
- SystemIPv6InterfaceProperties.cs
- SqlDataSourceCommandEventArgs.cs
- InputEventArgs.cs
- StorageFunctionMapping.cs
- Image.cs
- FontConverter.cs
- PrimitiveXmlSerializers.cs
- CheckBoxBaseAdapter.cs
- DesignBindingEditor.cs
- CustomValidator.cs
- ActivityDesignerHighlighter.cs
- DataGridColumnFloatingHeader.cs
- QilName.cs