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
- Subtree.cs
- BoundPropertyEntry.cs
- AdRotator.cs
- Material.cs
- COM2IDispatchConverter.cs
- CellRelation.cs
- NumericUpDownAcceleration.cs
- RemotingException.cs
- CompilerCollection.cs
- Vector3D.cs
- ControlAdapter.cs
- InternalBufferOverflowException.cs
- NetSectionGroup.cs
- DLinqDataModelProvider.cs
- SharedDp.cs
- DocumentSequence.cs
- PartEditor.cs
- Identity.cs
- NotificationContext.cs
- CopyNodeSetAction.cs
- ConfigurationHandlersInstallComponent.cs
- AutoGeneratedFieldProperties.cs
- ListItemCollection.cs
- QueryStringParameter.cs
- LinqDataSourceUpdateEventArgs.cs
- DataSourceView.cs
- ToolStripDropDown.cs
- BookmarkNameHelper.cs
- StopStoryboard.cs
- TextSerializer.cs
- TypeExtensionSerializer.cs
- DeliveryRequirementsAttribute.cs
- LinqDataSourceDeleteEventArgs.cs
- HostedImpersonationContext.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- GestureRecognitionResult.cs
- PropertiesTab.cs
- SystemSounds.cs
- HScrollProperties.cs
- ContentHostHelper.cs
- EmbeddedMailObject.cs
- MimeMultiPart.cs
- ProcessModelInfo.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- MouseCaptureWithinProperty.cs
- DbProviderManifest.cs
- ConfigurationLockCollection.cs
- RegistryConfigurationProvider.cs
- WindowsListView.cs
- RawTextInputReport.cs
- DataSpaceManager.cs
- Rotation3DAnimation.cs
- AVElementHelper.cs
- PageAsyncTaskManager.cs
- SortedList.cs
- MatcherBuilder.cs
- TextViewDesigner.cs
- BaseProcessor.cs
- DbgUtil.cs
- HWStack.cs
- Queue.cs
- CellParaClient.cs
- XamlSerializationHelper.cs
- ProcessModelSection.cs
- ItemsControl.cs
- QualifierSet.cs
- SmiMetaData.cs
- TextDecorationCollectionConverter.cs
- SessionPageStatePersister.cs
- PtsPage.cs
- storepermissionattribute.cs
- Baml2006KnownTypes.cs
- RenameRuleObjectDialog.Designer.cs
- BitmapEffect.cs
- TreeNodeBindingCollection.cs
- XPathAncestorIterator.cs
- WindowShowOrOpenTracker.cs
- Pen.cs
- ITextView.cs
- AddInAttribute.cs
- WindowsGraphics.cs
- MissingMemberException.cs
- DictionaryGlobals.cs
- ClientSettingsStore.cs
- HMACSHA256.cs
- ConfigurationValidatorAttribute.cs
- OpenTypeLayout.cs
- WpfWebRequestHelper.cs
- WindowsRebar.cs
- WizardStepCollectionEditor.cs
- MissingMethodException.cs
- SimpleTextLine.cs
- WebPartZoneBase.cs
- UIElement3D.cs
- KeyValuePair.cs
- DynamicMethod.cs
- DataSourceSelectArguments.cs
- AdapterUtil.cs
- DataGridViewRowsAddedEventArgs.cs
- InputDevice.cs