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
- DetailsViewPagerRow.cs
- TextContainer.cs
- ModifyActivitiesPropertyDescriptor.cs
- ObjectIDGenerator.cs
- DataSpaceManager.cs
- Pen.cs
- FontWeights.cs
- DataKey.cs
- PropertyToken.cs
- Trace.cs
- BackoffTimeoutHelper.cs
- ResumeStoryboard.cs
- PackageRelationship.cs
- AuthenticationConfig.cs
- BasicHttpMessageCredentialType.cs
- Camera.cs
- ItemCheckedEvent.cs
- FlowchartDesignerCommands.cs
- ResourceDefaultValueAttribute.cs
- ReflectionServiceProvider.cs
- Size.cs
- DefaultProxySection.cs
- DependencyObject.cs
- FastEncoder.cs
- ConstrainedDataObject.cs
- Dictionary.cs
- EntityConnectionStringBuilder.cs
- SynchronizationLockException.cs
- ListItemCollection.cs
- DefaultEventAttribute.cs
- ResourceDefaultValueAttribute.cs
- XmlCharacterData.cs
- PageFunction.cs
- EntityTransaction.cs
- LoginCancelEventArgs.cs
- AppDomainProtocolHandler.cs
- SuppressMessageAttribute.cs
- BitmapEffectRenderDataResource.cs
- TextServicesProperty.cs
- ConstructorArgumentAttribute.cs
- EditorOptionAttribute.cs
- Link.cs
- WindowsFormsSynchronizationContext.cs
- PersonalizationEntry.cs
- ConnectionPoolManager.cs
- ContentFilePart.cs
- WebPartActionVerb.cs
- ConnectionInterfaceCollection.cs
- DataGridViewToolTip.cs
- ServicePointManagerElement.cs
- WindowsFormsHostPropertyMap.cs
- CompoundFileStorageReference.cs
- TypeExtensionConverter.cs
- ZoneButton.cs
- Model3DGroup.cs
- CustomAttributeBuilder.cs
- ListDictionaryInternal.cs
- MultipartIdentifier.cs
- TransformPattern.cs
- sqlnorm.cs
- Column.cs
- SwitchAttribute.cs
- Transform3D.cs
- ToolStripOverflow.cs
- StreamGeometry.cs
- TableLayoutSettings.cs
- ParseChildrenAsPropertiesAttribute.cs
- BasicHttpBindingElement.cs
- RolePrincipal.cs
- HttpDebugHandler.cs
- DataList.cs
- SqlDependency.cs
- DirectionalLight.cs
- RelativeSource.cs
- SignedXml.cs
- WindowsPen.cs
- DataGridViewHitTestInfo.cs
- PropertyReferenceSerializer.cs
- UxThemeWrapper.cs
- WebPartMinimizeVerb.cs
- RegionInfo.cs
- MethodCallTranslator.cs
- CollectionViewSource.cs
- TextTreeExtractElementUndoUnit.cs
- AbstractSvcMapFileLoader.cs
- UnsafeNativeMethods.cs
- TextParentUndoUnit.cs
- Tag.cs
- X509Utils.cs
- LambdaCompiler.Address.cs
- PathGeometry.cs
- DiagnosticsConfiguration.cs
- DefaultProxySection.cs
- Point.cs
- DoubleAnimationUsingPath.cs
- ComponentDesigner.cs
- HealthMonitoringSectionHelper.cs
- ParserOptions.cs
- WebPartEditorOkVerb.cs
- TrustLevel.cs