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
- MetaChildrenColumn.cs
- DataGridViewUtilities.cs
- TextParaLineResult.cs
- ImageButton.cs
- TreeNodeCollectionEditor.cs
- OneToOneMappingSerializer.cs
- DrawingContextWalker.cs
- Crc32Helper.cs
- TaiwanCalendar.cs
- BitSet.cs
- Trigger.cs
- WebRequest.cs
- TreeViewImageKeyConverter.cs
- DocumentGridContextMenu.cs
- SQLSingleStorage.cs
- DPTypeDescriptorContext.cs
- IgnoreSection.cs
- ProcessModelInfo.cs
- Geometry3D.cs
- ToolStripProgressBar.cs
- Matrix.cs
- HandleRef.cs
- ScopelessEnumAttribute.cs
- IsolatedStorageFilePermission.cs
- JsonQNameDataContract.cs
- StreamReader.cs
- DataTransferEventArgs.cs
- UnsafeNativeMethods.cs
- PackUriHelper.cs
- StreamWriter.cs
- WpfPayload.cs
- FacetValues.cs
- BuildDependencySet.cs
- cookie.cs
- MetadataCacheItem.cs
- XmlTextWriter.cs
- FlowDocumentPaginator.cs
- GroupQuery.cs
- QueryTreeBuilder.cs
- AsyncStreamReader.cs
- TextSearch.cs
- ParallelEnumerableWrapper.cs
- MembershipSection.cs
- WebBrowser.cs
- DataSet.cs
- RegistrySecurity.cs
- SkipStoryboardToFill.cs
- FontInfo.cs
- TreeNode.cs
- DynamicMethod.cs
- Table.cs
- CollectionChangedEventManager.cs
- Compiler.cs
- WebBrowserProgressChangedEventHandler.cs
- CustomValidator.cs
- MemoryMappedFile.cs
- DbProviderSpecificTypePropertyAttribute.cs
- TypeSource.cs
- HttpModuleActionCollection.cs
- MsdtcWrapper.cs
- GlobalProxySelection.cs
- PaintEvent.cs
- UserControl.cs
- BoolExpressionVisitors.cs
- XmlSchemaFacet.cs
- TraceSwitch.cs
- SafeSecurityHandles.cs
- ScrollChrome.cs
- PaintEvent.cs
- DeviceSpecificDialogCachedState.cs
- ExpandCollapseProviderWrapper.cs
- ThrowHelper.cs
- RegexCaptureCollection.cs
- XmlRawWriterWrapper.cs
- SystemSounds.cs
- NamespaceMapping.cs
- HttpException.cs
- ToolBarButton.cs
- ConfigDefinitionUpdates.cs
- RepeatBehaviorConverter.cs
- WorkflowInstanceProvider.cs
- TimerEventSubscription.cs
- Brush.cs
- NativeMethods.cs
- CaseCqlBlock.cs
- Object.cs
- Ipv6Element.cs
- ZoneIdentityPermission.cs
- NativeObjectSecurity.cs
- WindowsTreeView.cs
- Variant.cs
- RegisterInfo.cs
- NullableBoolConverter.cs
- OrderedDictionaryStateHelper.cs
- IntegerFacetDescriptionElement.cs
- CompilerError.cs
- ToolboxItemFilterAttribute.cs
- QilXmlWriter.cs
- COM2Properties.cs
- ListBoxItem.cs