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
- DesignerActionVerbList.cs
- PageOrientation.cs
- RegularExpressionValidator.cs
- ExpandSegment.cs
- GACMembershipCondition.cs
- TdsValueSetter.cs
- Compiler.cs
- DataGridTextBoxColumn.cs
- BasicHttpBindingCollectionElement.cs
- SoapAttributes.cs
- InvalidateEvent.cs
- TextEditorParagraphs.cs
- CallTemplateAction.cs
- StringTraceRecord.cs
- WebScriptMetadataFormatter.cs
- DbConnectionPoolGroup.cs
- RelatedEnd.cs
- Keyboard.cs
- FunctionImportElement.cs
- XsltException.cs
- AvTraceDetails.cs
- DataSet.cs
- ActiveXContainer.cs
- JapaneseCalendar.cs
- ItemList.cs
- Profiler.cs
- WebPartAuthorizationEventArgs.cs
- ModelPerspective.cs
- autovalidator.cs
- M3DUtil.cs
- FamilyTypeface.cs
- AdornerHitTestResult.cs
- HttpResponse.cs
- GcSettings.cs
- Button.cs
- LambdaReference.cs
- WebBrowserDocumentCompletedEventHandler.cs
- DocumentGrid.cs
- ListItemsPage.cs
- UserControl.cs
- X509WindowsSecurityToken.cs
- LineServicesRun.cs
- DispatcherHooks.cs
- PresentationAppDomainManager.cs
- DataTableNewRowEvent.cs
- DataStorage.cs
- nulltextnavigator.cs
- ProviderConnectionPointCollection.cs
- ClrProviderManifest.cs
- SemaphoreSlim.cs
- CompositeFontInfo.cs
- EditorPartChrome.cs
- DNS.cs
- DocumentGridContextMenu.cs
- UIPropertyMetadata.cs
- MachineKeyConverter.cs
- NameTable.cs
- CharUnicodeInfo.cs
- XmlLanguage.cs
- validationstate.cs
- SqlNodeAnnotations.cs
- ClientScriptManagerWrapper.cs
- AffineTransform3D.cs
- ConfigurationException.cs
- DataGridViewCellStyle.cs
- Avt.cs
- IsolatedStorageFile.cs
- BeginStoryboard.cs
- KnownTypesHelper.cs
- RegexFCD.cs
- XPathBuilder.cs
- AdapterDictionary.cs
- PrivilegeNotHeldException.cs
- BinaryCommonClasses.cs
- IxmlLineInfo.cs
- DecimalAnimationUsingKeyFrames.cs
- TaiwanLunisolarCalendar.cs
- SqlClientPermission.cs
- HostedTcpTransportManager.cs
- ToolTip.cs
- Win32PrintDialog.cs
- RecommendedAsConfigurableAttribute.cs
- HttpStreamXmlDictionaryWriter.cs
- Figure.cs
- ItemDragEvent.cs
- CompositeDataBoundControl.cs
- CodeIndexerExpression.cs
- Misc.cs
- PlanCompiler.cs
- PolicyValidationException.cs
- AssemblyUtil.cs
- DesignerAdapterUtil.cs
- NavigationPropertyEmitter.cs
- QueryCacheManager.cs
- AttachmentCollection.cs
- _ConnectStream.cs
- SchemaElementDecl.cs
- MsmqHostedTransportManager.cs
- ParentUndoUnit.cs
- OrderedEnumerableRowCollection.cs