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
- QueryableDataSourceEditData.cs
- Utils.cs
- RectangleF.cs
- LinearGradientBrush.cs
- QilFactory.cs
- SqlFormatter.cs
- counter.cs
- StateMachineWorkflowInstance.cs
- OraclePermissionAttribute.cs
- webclient.cs
- _Events.cs
- DataGridComponentEditor.cs
- Facet.cs
- KeyTime.cs
- InputScopeNameConverter.cs
- DesignerActionPanel.cs
- PnrpPeerResolverBindingElement.cs
- ExpressionBuilderCollection.cs
- OdbcEnvironment.cs
- DynamicDataManager.cs
- RelationshipConstraintValidator.cs
- ValueConversionAttribute.cs
- XmlSchemaGroupRef.cs
- DataObjectAttribute.cs
- ComboBoxAutomationPeer.cs
- BinaryWriter.cs
- ControlValuePropertyAttribute.cs
- AttachedPropertyBrowsableAttribute.cs
- Stopwatch.cs
- TextDecorationCollection.cs
- XmlStreamStore.cs
- _ServiceNameStore.cs
- FieldToken.cs
- BindingList.cs
- InvalidDataException.cs
- ChineseLunisolarCalendar.cs
- ReferentialConstraint.cs
- ObjectDataSourceChooseTypePanel.cs
- OdbcConnectionOpen.cs
- ISO2022Encoding.cs
- AVElementHelper.cs
- IsolatedStorageSecurityState.cs
- DocumentViewerBaseAutomationPeer.cs
- DataPagerFieldItem.cs
- BamlLocalizationDictionary.cs
- XmlIncludeAttribute.cs
- FolderBrowserDialog.cs
- TreeViewBindingsEditorForm.cs
- XmlILStorageConverter.cs
- Debug.cs
- HtmlProps.cs
- MenuItemStyleCollection.cs
- DependencyObjectPropertyDescriptor.cs
- RectangleConverter.cs
- WebUtil.cs
- DefaultPropertyAttribute.cs
- AlignmentXValidation.cs
- ActivationServices.cs
- RegistrySecurity.cs
- FormViewCommandEventArgs.cs
- _OSSOCK.cs
- SyndicationDeserializer.cs
- WindowsListViewItemStartMenu.cs
- Line.cs
- StateDesignerConnector.cs
- DockingAttribute.cs
- SplitterCancelEvent.cs
- GatewayDefinition.cs
- AspNetPartialTrustHelpers.cs
- ProxyGenerationError.cs
- Identifier.cs
- ActivityExecutorDelegateInfo.cs
- DataTable.cs
- ImageCodecInfo.cs
- ProcessModule.cs
- XmlNotation.cs
- XmlDataSource.cs
- TextDecorationUnitValidation.cs
- UnmanagedBitmapWrapper.cs
- HtmlUtf8RawTextWriter.cs
- OleDbReferenceCollection.cs
- VisualBasic.cs
- WorkflowOperationErrorHandler.cs
- SizeIndependentAnimationStorage.cs
- ScrollBarAutomationPeer.cs
- AssemblyCacheEntry.cs
- counter.cs
- EventSourceCreationData.cs
- ToolStripSeparator.cs
- MatrixAnimationUsingPath.cs
- CollectionDataContract.cs
- GlyphRun.cs
- UnmanagedMemoryStreamWrapper.cs
- TreeNode.cs
- ProtocolsConfiguration.cs
- ResourcesBuildProvider.cs
- FileDialog_Vista.cs
- XmlSerializationReader.cs
- EditorPart.cs
- WebScriptServiceHostFactory.cs