Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CreateParams.cs
- RangeBase.cs
- ObservableDictionary.cs
- StringUtil.cs
- CrossAppDomainChannel.cs
- Win32NamedPipes.cs
- NegotiateStream.cs
- ObjectSecurity.cs
- FreeFormPanel.cs
- CultureSpecificStringDictionary.cs
- ExpressionBuilder.cs
- XmlSchemaAnyAttribute.cs
- HtmlControlDesigner.cs
- Point4D.cs
- ProxyManager.cs
- FileSystemInfo.cs
- DatagridviewDisplayedBandsData.cs
- GlobalItem.cs
- MessageSmuggler.cs
- Fonts.cs
- ListViewPagedDataSource.cs
- DataListCommandEventArgs.cs
- AttributeData.cs
- PagePropertiesChangingEventArgs.cs
- DataGridSortCommandEventArgs.cs
- ListBase.cs
- SqlConnectionPoolProviderInfo.cs
- CollectionBuilder.cs
- TripleDESCryptoServiceProvider.cs
- CompressionTransform.cs
- DLinqAssociationProvider.cs
- HMACSHA256.cs
- TextComposition.cs
- SqlPersonalizationProvider.cs
- Lookup.cs
- QilSortKey.cs
- ThreadInterruptedException.cs
- Int64Storage.cs
- DesignerLoader.cs
- SchemaMapping.cs
- SerializerDescriptor.cs
- XPathNavigator.cs
- CallbackValidatorAttribute.cs
- BoundsDrawingContextWalker.cs
- DataTableReaderListener.cs
- httpapplicationstate.cs
- DataGridViewSelectedRowCollection.cs
- TextElementAutomationPeer.cs
- TextBreakpoint.cs
- SecurityDescriptor.cs
- IPCCacheManager.cs
- brushes.cs
- ValueOfAction.cs
- InheritanceAttribute.cs
- ControlValuePropertyAttribute.cs
- ToolStripDropTargetManager.cs
- RemoteWebConfigurationHostServer.cs
- DataControlFieldCollection.cs
- IconHelper.cs
- PolicyLevel.cs
- ListComponentEditorPage.cs
- TextTreeTextBlock.cs
- BitmapPalette.cs
- SecurityElement.cs
- TypeCollectionDesigner.xaml.cs
- NativeCppClassAttribute.cs
- GenericWebPart.cs
- MenuBindingsEditorForm.cs
- Annotation.cs
- PreProcessor.cs
- ObjectTag.cs
- FontDifferentiator.cs
- AsyncContentLoadedEventArgs.cs
- Camera.cs
- DataGridCaption.cs
- EncryptedData.cs
- MatrixConverter.cs
- X509ChainElement.cs
- XmlAnyElementAttribute.cs
- ConnectivityStatus.cs
- ToolStripItemClickedEventArgs.cs
- DesignerCategoryAttribute.cs
- CompiledIdentityConstraint.cs
- DataObjectMethodAttribute.cs
- WizardStepBase.cs
- Activator.cs
- ResXResourceWriter.cs
- DataView.cs
- StylusOverProperty.cs
- CodeSubDirectoriesCollection.cs
- IdentifierService.cs
- TextBoxLine.cs
- ListManagerBindingsCollection.cs
- ConfigXmlAttribute.cs
- ComboBoxRenderer.cs
- WebPartVerbCollection.cs
- SchemaTableOptionalColumn.cs
- xmlformatgeneratorstatics.cs
- XsltSettings.cs
- TraceLevelStore.cs