Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SettingsPropertyIsReadOnlyException.cs
- SubstitutionDesigner.cs
- PartialCachingAttribute.cs
- DataGridCaption.cs
- HostProtectionException.cs
- StringWriter.cs
- ECDsa.cs
- PathGradientBrush.cs
- PackWebResponse.cs
- mediapermission.cs
- DataBoundLiteralControl.cs
- HyperLinkStyle.cs
- BeginEvent.cs
- JoinSymbol.cs
- StoreAnnotationsMap.cs
- AutomationProperty.cs
- _ProxyRegBlob.cs
- StringResourceManager.cs
- configsystem.cs
- ValidationPropertyAttribute.cs
- ComponentDispatcher.cs
- PropertyNames.cs
- EventRouteFactory.cs
- UIElement3D.cs
- KeyboardDevice.cs
- ObjectViewListener.cs
- CheckBoxPopupAdapter.cs
- MenuItemCollection.cs
- MergePropertyDescriptor.cs
- CodePageEncoding.cs
- UserControl.cs
- SourceSwitch.cs
- HostUtils.cs
- MatrixAnimationUsingPath.cs
- configsystem.cs
- ControlDesigner.cs
- TextEditorCharacters.cs
- InfoCardSymmetricAlgorithm.cs
- ExpressionList.cs
- RadialGradientBrush.cs
- EnvelopedPkcs7.cs
- WebBrowserHelper.cs
- ItemDragEvent.cs
- TreeNode.cs
- AttachedPropertyDescriptor.cs
- ToolStripDesignerAvailabilityAttribute.cs
- InkCanvas.cs
- _HeaderInfo.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- TrackingStringDictionary.cs
- LayoutUtils.cs
- Win32MouseDevice.cs
- KeyFrames.cs
- InheritanceRules.cs
- DrawingContextDrawingContextWalker.cs
- TextOptions.cs
- AdjustableArrowCap.cs
- ReferencedCollectionType.cs
- TdsEnums.cs
- ElementHostAutomationPeer.cs
- SafeNativeMethods.cs
- MessageBox.cs
- SqlProviderManifest.cs
- OleDbParameterCollection.cs
- PenThread.cs
- XmlQueryContext.cs
- ToolStripLabel.cs
- BinaryOperationBinder.cs
- SplitterEvent.cs
- Panel.cs
- FixedDSBuilder.cs
- Table.cs
- PackUriHelper.cs
- AutomationPeer.cs
- BlurEffect.cs
- CssTextWriter.cs
- FrameSecurityDescriptor.cs
- Hyperlink.cs
- XmlSchemaCollection.cs
- DelimitedListTraceListener.cs
- AuthenticatedStream.cs
- BamlRecords.cs
- GradientStop.cs
- EventData.cs
- DecoderReplacementFallback.cs
- MenuRendererClassic.cs
- NativeWindow.cs
- EncodingFallbackAwareXmlTextWriter.cs
- CFGGrammar.cs
- SystemColorTracker.cs
- ResourcesGenerator.cs
- SplayTreeNode.cs
- PasswordPropertyTextAttribute.cs
- _LocalDataStoreMgr.cs
- DESCryptoServiceProvider.cs
- ScriptBehaviorDescriptor.cs
- _DomainName.cs
- ReliableChannelListener.cs
- ScalarType.cs
- SettingsAttributeDictionary.cs