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
- AddInController.cs
- DataGridRow.cs
- RepeatButtonAutomationPeer.cs
- ConnectorDragDropGlyph.cs
- NativeMethods.cs
- ToolConsole.cs
- ConfigurationElement.cs
- PersonalizableTypeEntry.cs
- FieldBuilder.cs
- XPathDocument.cs
- MetadataCollection.cs
- InvalidFilterCriteriaException.cs
- PathFigureCollectionConverter.cs
- ISFClipboardData.cs
- ThreadInterruptedException.cs
- MainMenu.cs
- MessageDecoder.cs
- BooleanStorage.cs
- SqlCacheDependencyDatabaseCollection.cs
- ImageAttributes.cs
- ProfileGroupSettings.cs
- DynamicFilter.cs
- WorkflowInstanceExtensionManager.cs
- DataGridViewCellParsingEventArgs.cs
- LinkTarget.cs
- MemberJoinTreeNode.cs
- ImageSource.cs
- RectangleHotSpot.cs
- CheckBoxBaseAdapter.cs
- RuntimeCompatibilityAttribute.cs
- ObjectToIdCache.cs
- IndexedString.cs
- AlternateViewCollection.cs
- DataRecordInfo.cs
- InvalidateEvent.cs
- ListDictionaryInternal.cs
- KnownBoxes.cs
- AliasedSlot.cs
- PrePrepareMethodAttribute.cs
- CompoundFileStorageReference.cs
- WebBrowser.cs
- WeakKeyDictionary.cs
- SQLChars.cs
- SchemaElementDecl.cs
- CleanUpVirtualizedItemEventArgs.cs
- PenThread.cs
- SQLDateTime.cs
- AppDomainResourcePerfCounters.cs
- SelectionEditingBehavior.cs
- ValueSerializer.cs
- SqlParameterizer.cs
- OdbcParameterCollection.cs
- MethodExpr.cs
- BamlLocalizableResource.cs
- TypeConverterHelper.cs
- SessionViewState.cs
- _ContextAwareResult.cs
- Empty.cs
- WebConfigurationFileMap.cs
- WebPartEventArgs.cs
- EventWaitHandleSecurity.cs
- Decorator.cs
- InternalConfigSettingsFactory.cs
- ScriptReferenceBase.cs
- ItemCheckEvent.cs
- WebUtil.cs
- PropertyValueChangedEvent.cs
- TcpActivation.cs
- CodeConstructor.cs
- HandlerBase.cs
- Configuration.cs
- OpCellTreeNode.cs
- ScriptMethodAttribute.cs
- OpCopier.cs
- DataGridViewCellMouseEventArgs.cs
- HybridWebProxyFinder.cs
- CollectionMarkupSerializer.cs
- TraceUtils.cs
- EntitySet.cs
- DataListCommandEventArgs.cs
- AnnotationHighlightLayer.cs
- VarRemapper.cs
- ListItemParagraph.cs
- MapPathBasedVirtualPathProvider.cs
- LabelEditEvent.cs
- MembershipPasswordException.cs
- RadioButtonFlatAdapter.cs
- _DisconnectOverlappedAsyncResult.cs
- XmlTextAttribute.cs
- StatusBar.cs
- UpdatePanelTriggerCollection.cs
- XPathNodeList.cs
- CircleEase.cs
- XmlSerializableReader.cs
- PackUriHelper.cs
- TextWriter.cs
- SmiTypedGetterSetter.cs
- Encoder.cs
- oledbconnectionstring.cs
- ObjectItemCollection.cs