Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- PropertyMapper.cs
- NumericUpDownAcceleration.cs
- GenericAuthenticationEventArgs.cs
- RepeaterItemCollection.cs
- InputDevice.cs
- MetafileHeader.cs
- WindowsStatusBar.cs
- DiagnosticTrace.cs
- TransactionManager.cs
- InfoCardSymmetricAlgorithm.cs
- CachingParameterInspector.cs
- RequestQueryParser.cs
- GridView.cs
- FilterQueryOptionExpression.cs
- OutputBuffer.cs
- FacetEnabledSchemaElement.cs
- TimeSpanValidatorAttribute.cs
- LineUtil.cs
- ValueConversionAttribute.cs
- TextElementEnumerator.cs
- Compiler.cs
- CompilerGlobalScopeAttribute.cs
- LiteralControl.cs
- TraceHandler.cs
- IChannel.cs
- AuthorizationRuleCollection.cs
- EventToken.cs
- CultureData.cs
- _ListenerRequestStream.cs
- OdbcStatementHandle.cs
- ResourceExpressionBuilder.cs
- ConstantExpression.cs
- IsolatedStorageFile.cs
- SspiNegotiationTokenProvider.cs
- Command.cs
- TextDecorationCollection.cs
- ImageListUtils.cs
- WebPartUserCapability.cs
- CodeAccessPermission.cs
- PartialToken.cs
- CallbackWrapper.cs
- PolicyManager.cs
- ApplicationDirectory.cs
- ParsedAttributeCollection.cs
- TagPrefixInfo.cs
- MailMessage.cs
- safemediahandle.cs
- ControlCachePolicy.cs
- CodeCompileUnit.cs
- BitmapFrameDecode.cs
- DataSourceBooleanViewSchemaConverter.cs
- DefaultTextStore.cs
- AssociationSetEnd.cs
- ParameterSubsegment.cs
- ClientRequest.cs
- CodeDomConfigurationHandler.cs
- HwndTarget.cs
- EntityContainerAssociationSetEnd.cs
- PermissionRequestEvidence.cs
- PeerApplication.cs
- TextDecoration.cs
- shaperfactory.cs
- TraceData.cs
- ScriptReferenceBase.cs
- ExceptionHandler.cs
- HtmlShimManager.cs
- TabControlEvent.cs
- HtmlFormWrapper.cs
- AppDomainUnloadedException.cs
- RightsManagementInformation.cs
- PhysicalFontFamily.cs
- DbProviderFactoriesConfigurationHandler.cs
- Debug.cs
- ASCIIEncoding.cs
- ThousandthOfEmRealDoubles.cs
- Opcode.cs
- WindowsSolidBrush.cs
- BackStopAuthenticationModule.cs
- DesignerToolboxInfo.cs
- DataGridTextBox.cs
- ObjectListCommand.cs
- FixedTextPointer.cs
- ExpressionEditorAttribute.cs
- AsyncCodeActivity.cs
- StaticResourceExtension.cs
- TemplatedWizardStep.cs
- VisualStateChangedEventArgs.cs
- AsyncStreamReader.cs
- InstanceContextManager.cs
- CallbackValidator.cs
- Logging.cs
- PeerOutputChannel.cs
- XmlWhitespace.cs
- CollaborationHelperFunctions.cs
- ColorDialog.cs
- AspNetHostingPermission.cs
- IndicShape.cs
- DurationConverter.cs
- FieldAccessException.cs
- WebMessageBodyStyleHelper.cs