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
- ColumnTypeConverter.cs
- SmuggledIUnknown.cs
- PersianCalendar.cs
- NonSerializedAttribute.cs
- PeerApplication.cs
- _StreamFramer.cs
- SponsorHelper.cs
- InternalBase.cs
- XmlCountingReader.cs
- X509CertificateCollection.cs
- WebBrowserEvent.cs
- PtsCache.cs
- ScalarConstant.cs
- ClientTargetSection.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- SuppressMergeCheckAttribute.cs
- BitmapEffectGeneralTransform.cs
- PerfCounterSection.cs
- WebUtil.cs
- CodeTypeDeclaration.cs
- OdbcEnvironment.cs
- followingquery.cs
- UDPClient.cs
- Timer.cs
- Style.cs
- LogExtent.cs
- FlowDocumentPage.cs
- ClipboardProcessor.cs
- TiffBitmapDecoder.cs
- WorkflowServiceAttributes.cs
- HandleRef.cs
- SeekStoryboard.cs
- DefaultPrintController.cs
- Action.cs
- ConfigurationManagerInternal.cs
- SymbolEqualComparer.cs
- SQLByteStorage.cs
- SafeNativeMethods.cs
- RewritingSimplifier.cs
- MarshalByRefObject.cs
- SqlVisitor.cs
- ResolveMatchesMessage11.cs
- IndicFontClient.cs
- SoapServerProtocol.cs
- EventDescriptor.cs
- XpsDigitalSignature.cs
- XmlIlVisitor.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- WebPartDisplayModeCollection.cs
- RectConverter.cs
- TypeElementCollection.cs
- UnauthorizedAccessException.cs
- MessageVersionConverter.cs
- AlternateViewCollection.cs
- SqlConnectionString.cs
- DataGridViewCheckBoxCell.cs
- filewebrequest.cs
- SessionStateUtil.cs
- Margins.cs
- RuntimeVariablesExpression.cs
- BitmapEffectInputData.cs
- XPathDescendantIterator.cs
- ComNativeDescriptor.cs
- HttpListenerElement.cs
- HtmlInputText.cs
- RuntimeConfigLKG.cs
- ConnectionsZoneDesigner.cs
- NetDispatcherFaultException.cs
- GridViewDeletedEventArgs.cs
- OdbcConnection.cs
- DbProviderFactory.cs
- DependencyObject.cs
- ForceCopyBuildProvider.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- Exception.cs
- TextEditorMouse.cs
- TableProvider.cs
- ItemCheckEvent.cs
- MasterPageParser.cs
- ListManagerBindingsCollection.cs
- CookielessHelper.cs
- OutputCacheModule.cs
- HostnameComparisonMode.cs
- CollectionExtensions.cs
- SQLResource.cs
- loginstatus.cs
- BitmapMetadataEnumerator.cs
- XhtmlBasicLabelAdapter.cs
- QueryTreeBuilder.cs
- DataAccessor.cs
- FixedSOMLineCollection.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- Application.cs
- DiscreteKeyFrames.cs
- XmlCharCheckingReader.cs
- DataControlFieldHeaderCell.cs
- DynamicResourceExtensionConverter.cs
- PathFigureCollectionConverter.cs
- ClientSettingsSection.cs
- OleDbEnumerator.cs