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
- StreamReader.cs
- ResXResourceSet.cs
- ValidatorCompatibilityHelper.cs
- MediaTimeline.cs
- DataColumnMapping.cs
- DataReceivedEventArgs.cs
- XmlSerializerFactory.cs
- QilIterator.cs
- MemoryResponseElement.cs
- BitVector32.cs
- StateMachineWorkflowDesigner.cs
- HwndSource.cs
- XmlWrappingReader.cs
- CellIdBoolean.cs
- FileDetails.cs
- XXXOnTypeBuilderInstantiation.cs
- Literal.cs
- ExclusiveTcpListener.cs
- UrlAuthFailedErrorFormatter.cs
- WebPartAddingEventArgs.cs
- ExclusiveCanonicalizationTransform.cs
- XmlDataSourceNodeDescriptor.cs
- DisposableCollectionWrapper.cs
- ObjectPersistData.cs
- JavaScriptObjectDeserializer.cs
- DesignerDataParameter.cs
- FileSystemWatcher.cs
- ContainerActivationHelper.cs
- PointAnimationUsingPath.cs
- DetailsViewDeleteEventArgs.cs
- HandlerFactoryWrapper.cs
- AutomationIdentifier.cs
- XmlSchemaSet.cs
- GacUtil.cs
- ComponentConverter.cs
- PipeStream.cs
- Proxy.cs
- GeneratedView.cs
- BindingCompleteEventArgs.cs
- Label.cs
- CodeTypeMember.cs
- base64Transforms.cs
- DataGridViewRowHeaderCell.cs
- XmlILAnnotation.cs
- BitmapEffectState.cs
- GcSettings.cs
- ImpersonateTokenRef.cs
- XDRSchema.cs
- ComPlusDiagnosticTraceSchemas.cs
- Color.cs
- AssemblyBuilder.cs
- ToolStripItemBehavior.cs
- HostingEnvironment.cs
- Convert.cs
- securitycriticaldataformultiplegetandset.cs
- NumericUpDownAcceleration.cs
- ServiceModelConfigurationSectionGroup.cs
- UniqueSet.cs
- HtmlSelectionListAdapter.cs
- ObjectTokenCategory.cs
- X509Chain.cs
- GenerateTemporaryAssemblyTask.cs
- DescendantOverDescendantQuery.cs
- IndentedWriter.cs
- FormViewDeleteEventArgs.cs
- DeploymentExceptionMapper.cs
- CompModSwitches.cs
- Point3DConverter.cs
- PropertiesTab.cs
- GridEntryCollection.cs
- ObjectAnimationUsingKeyFrames.cs
- ToolStripSplitStackLayout.cs
- DispatcherExceptionEventArgs.cs
- MultiSelector.cs
- InheritablePropertyChangeInfo.cs
- TextBoxBase.cs
- Stroke.cs
- MobileUserControl.cs
- InternalControlCollection.cs
- XamlContextStack.cs
- PasswordBoxAutomationPeer.cs
- EncryptedKeyHashIdentifierClause.cs
- LineServices.cs
- PaginationProgressEventArgs.cs
- ZipIOFileItemStream.cs
- DataViewManagerListItemTypeDescriptor.cs
- FormViewPagerRow.cs
- ExpressionHelper.cs
- _AutoWebProxyScriptEngine.cs
- LazyTextWriterCreator.cs
- DependencyProperty.cs
- Roles.cs
- HttpHandlerActionCollection.cs
- DefaultAssemblyResolver.cs
- TrackingMemoryStream.cs
- XmlTextEncoder.cs
- UriSection.cs
- HostedElements.cs
- SafeViewOfFileHandle.cs
- StylusButtonCollection.cs