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
- FixedTextView.cs
- SourceExpressionException.cs
- PerformanceCounterPermissionEntryCollection.cs
- RouteParametersHelper.cs
- GridErrorDlg.cs
- ImmutablePropertyDescriptorGridEntry.cs
- PerfCounterSection.cs
- PeerNameRegistration.cs
- ReadOnlyActivityGlyph.cs
- XamlHostingConfiguration.cs
- XmlMembersMapping.cs
- PointAnimationClockResource.cs
- StrongNamePublicKeyBlob.cs
- SHA384.cs
- QueryAccessibilityHelpEvent.cs
- SoapInteropTypes.cs
- JulianCalendar.cs
- LambdaCompiler.Generated.cs
- OpenTypeLayout.cs
- Unit.cs
- Mouse.cs
- ISAPIApplicationHost.cs
- HierarchicalDataBoundControl.cs
- TrackingServices.cs
- DataBindingsDialog.cs
- ExceptionValidationRule.cs
- Constants.cs
- SettingsAttributes.cs
- Span.cs
- Mappings.cs
- ConfigurationErrorsException.cs
- EndpointIdentityConverter.cs
- SerializationInfo.cs
- SQLMembershipProvider.cs
- QueryOutputWriter.cs
- OverrideMode.cs
- SocketAddress.cs
- KeySplineConverter.cs
- InputScope.cs
- TypefaceMetricsCache.cs
- DescendantOverDescendantQuery.cs
- XmlHierarchicalDataSourceView.cs
- HtmlTable.cs
- ResourcePart.cs
- PropertyChangingEventArgs.cs
- MsmqMessageSerializationFormat.cs
- ClipboardData.cs
- Inline.cs
- SendMailErrorEventArgs.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- PrintControllerWithStatusDialog.cs
- MinimizableAttributeTypeConverter.cs
- ModelVisual3D.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Unit.cs
- JournalNavigationScope.cs
- RegisteredDisposeScript.cs
- _SslStream.cs
- Vector3DCollectionConverter.cs
- JsonServiceDocumentSerializer.cs
- X509InitiatorCertificateServiceElement.cs
- QuaternionAnimationBase.cs
- SamlAssertion.cs
- TextEvent.cs
- SqlMetaData.cs
- EditingCommands.cs
- SQLUtility.cs
- TaskExceptionHolder.cs
- EndpointIdentityExtension.cs
- SmtpCommands.cs
- NameValueConfigurationElement.cs
- DataSourceControl.cs
- CodeIdentifiers.cs
- CreateRefExpr.cs
- TextOnlyOutput.cs
- IntegerCollectionEditor.cs
- _RequestCacheProtocol.cs
- ExpressionLexer.cs
- RegexGroup.cs
- DaylightTime.cs
- COM2IProvidePropertyBuilderHandler.cs
- CLRBindingWorker.cs
- TargetInvocationException.cs
- messageonlyhwndwrapper.cs
- XmlSignificantWhitespace.cs
- SchemaNames.cs
- MsdtcWrapper.cs
- DSASignatureDeformatter.cs
- SafeMILHandle.cs
- ListViewItem.cs
- WebPartConnectionsCancelVerb.cs
- InkSerializer.cs
- BindStream.cs
- RoleService.cs
- FunctionImportElement.cs
- EventProviderTraceListener.cs
- Stroke2.cs
- ImportCatalogPart.cs
- TypeElement.cs
- StylusPointPropertyInfo.cs