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
- RestHandler.cs
- ParserHooks.cs
- DataGridItemAutomationPeer.cs
- SQLResource.cs
- WebFaultClientMessageInspector.cs
- GraphicsContext.cs
- MatrixUtil.cs
- JsonXmlDataContract.cs
- AsnEncodedData.cs
- DataBoundControlHelper.cs
- DynamicUpdateCommand.cs
- GridViewCommandEventArgs.cs
- WebBrowserEvent.cs
- IPAddressCollection.cs
- DetailsViewModeEventArgs.cs
- ADRole.cs
- NotSupportedException.cs
- TextEndOfSegment.cs
- ToolStripComboBox.cs
- XmlValidatingReaderImpl.cs
- Assert.cs
- TypeBuilderInstantiation.cs
- categoryentry.cs
- CheckedPointers.cs
- initElementDictionary.cs
- RawUIStateInputReport.cs
- DrawingServices.cs
- SqlInternalConnectionSmi.cs
- WebPartUtil.cs
- Win32.cs
- IsolatedStorageFile.cs
- HtmlWindowCollection.cs
- Site.cs
- Executor.cs
- NumberSubstitution.cs
- NotifyParentPropertyAttribute.cs
- SystemIPAddressInformation.cs
- OdbcRowUpdatingEvent.cs
- XmlDocumentType.cs
- SqlInternalConnection.cs
- AssemblyBuilder.cs
- TemplateBindingExpressionConverter.cs
- ResourceReferenceExpression.cs
- DetailsViewRow.cs
- PersistNameAttribute.cs
- MouseWheelEventArgs.cs
- EncoderBestFitFallback.cs
- FlowDecisionLabelFeature.cs
- ObjectDisposedException.cs
- IdentityNotMappedException.cs
- SpeechRecognitionEngine.cs
- Comparer.cs
- NamespaceList.cs
- NetTcpSection.cs
- XmlSchemaSimpleContent.cs
- BitmapImage.cs
- XmlReflectionMember.cs
- ImagingCache.cs
- NotificationContext.cs
- CornerRadiusConverter.cs
- CreateParams.cs
- MarkedHighlightComponent.cs
- ColorConverter.cs
- HandoffBehavior.cs
- DataGridViewToolTip.cs
- TextDecorationLocationValidation.cs
- Cursors.cs
- DecimalMinMaxAggregationOperator.cs
- Vars.cs
- XmlDocumentViewSchema.cs
- TaiwanCalendar.cs
- ServiceBuildProvider.cs
- SpeechRecognizer.cs
- RC2CryptoServiceProvider.cs
- TreeViewItemAutomationPeer.cs
- WindowsUpDown.cs
- Frame.cs
- SamlSerializer.cs
- AccessDataSourceDesigner.cs
- ItemList.cs
- HttpResponseInternalWrapper.cs
- TimeSpanValidator.cs
- ResourcesGenerator.cs
- TextElementEnumerator.cs
- XmlUrlResolver.cs
- GlyphRunDrawing.cs
- versioninfo.cs
- WebPartUtil.cs
- SqlMethodAttribute.cs
- NumericUpDownAccelerationCollection.cs
- DataStreamFromComStream.cs
- BoolLiteral.cs
- ButtonPopupAdapter.cs
- BindingCompleteEventArgs.cs
- WindowsTokenRoleProvider.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- SiteMapHierarchicalDataSourceView.cs
- PreviewPageInfo.cs
- OperatingSystem.cs
- GeneralTransform3DGroup.cs