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
- XmlQueryOutput.cs
- DataObjectSettingDataEventArgs.cs
- MatchAttribute.cs
- ProcessHostConfigUtils.cs
- Parallel.cs
- AutomationIdentifier.cs
- EdmProperty.cs
- StyleSelector.cs
- ExceptionRoutedEventArgs.cs
- CustomWebEventKey.cs
- ParserExtension.cs
- Walker.cs
- ConfigurationElementProperty.cs
- SQLInt64.cs
- NativeMethods.cs
- AggregateException.cs
- RegexRunnerFactory.cs
- CompiledAction.cs
- XmlRawWriter.cs
- ComponentEvent.cs
- PasswordPropertyTextAttribute.cs
- CryptoKeySecurity.cs
- SchemaTableColumn.cs
- Select.cs
- TextAutomationPeer.cs
- DrawingBrush.cs
- WindowsListView.cs
- ObjectStorage.cs
- SourceChangedEventArgs.cs
- OutputCacheSettingsSection.cs
- DesignerDataSourceView.cs
- PropertyCondition.cs
- ClaimSet.cs
- HandledMouseEvent.cs
- _HeaderInfo.cs
- WebPartCatalogCloseVerb.cs
- InputLanguageProfileNotifySink.cs
- AttributeCollection.cs
- TrackingWorkflowEventArgs.cs
- GroupedContextMenuStrip.cs
- ObjectStateEntryDbDataRecord.cs
- DbReferenceCollection.cs
- StdRegProviderWrapper.cs
- ResourceContainer.cs
- ItemsPresenter.cs
- DataContext.cs
- MarkupExtensionParser.cs
- ResourcePool.cs
- BitConverter.cs
- BidirectionalDictionary.cs
- Line.cs
- AssociationProvider.cs
- ServiceReference.cs
- ClientFormsAuthenticationCredentials.cs
- TypedTableBase.cs
- DeadCharTextComposition.cs
- CompositionAdorner.cs
- SharingService.cs
- BindingOperations.cs
- WebPartChrome.cs
- BrushConverter.cs
- DocumentSequenceHighlightLayer.cs
- ScriptManagerProxy.cs
- MenuItemStyleCollection.cs
- DataViewSettingCollection.cs
- XPathItem.cs
- DataGridItemAttachedStorage.cs
- CodeNamespaceImportCollection.cs
- TreeNodeStyleCollectionEditor.cs
- AssociationTypeEmitter.cs
- IntSecurity.cs
- VisualStyleRenderer.cs
- ExpressionParser.cs
- InheritanceContextChangedEventManager.cs
- smtppermission.cs
- BuilderPropertyEntry.cs
- TabPage.cs
- ProfileParameter.cs
- SocketInformation.cs
- GroupStyle.cs
- WebServiceResponseDesigner.cs
- HGlobalSafeHandle.cs
- TagPrefixInfo.cs
- AutomationElement.cs
- MultiTrigger.cs
- ScriptingJsonSerializationSection.cs
- AppSecurityManager.cs
- LineServices.cs
- Not.cs
- Misc.cs
- sqlpipe.cs
- Action.cs
- ForwardPositionQuery.cs
- DataSpaceManager.cs
- securestring.cs
- DbConnectionFactory.cs
- BamlLocalizer.cs
- Process.cs
- Misc.cs
- HostProtectionException.cs