Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- OletxDependentTransaction.cs
- RoutedEventConverter.cs
- ModelTreeManager.cs
- BitVector32.cs
- UnauthorizedAccessException.cs
- ScopedKnownTypes.cs
- SyndicationElementExtension.cs
- XmlDataImplementation.cs
- WebPartCatalogCloseVerb.cs
- XmlILConstructAnalyzer.cs
- Decimal.cs
- SeparatorAutomationPeer.cs
- TiffBitmapEncoder.cs
- HebrewCalendar.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- MarshalByRefObject.cs
- _PooledStream.cs
- XmlILModule.cs
- MexHttpsBindingCollectionElement.cs
- Fonts.cs
- DivideByZeroException.cs
- PlatformCulture.cs
- SignedXml.cs
- CustomGrammar.cs
- CatalogZone.cs
- NativeMethods.cs
- TreeIterators.cs
- WindowsListViewItemCheckBox.cs
- FocusManager.cs
- ScriptComponentDescriptor.cs
- LOSFormatter.cs
- CodeAccessPermission.cs
- WinEventHandler.cs
- StylusButtonCollection.cs
- ClientScriptManagerWrapper.cs
- LazyTextWriterCreator.cs
- ExpressionVisitor.cs
- MemoryMappedFile.cs
- EncoderNLS.cs
- TrackingMemoryStream.cs
- TokenBasedSet.cs
- QueryCreatedEventArgs.cs
- InnerItemCollectionView.cs
- MdiWindowListStrip.cs
- DbParameterCollectionHelper.cs
- _HelperAsyncResults.cs
- DictionaryEntry.cs
- SelectedGridItemChangedEvent.cs
- TextRange.cs
- LeaseManager.cs
- Parser.cs
- UpDownBaseDesigner.cs
- BindingMAnagerBase.cs
- MaskedTextProvider.cs
- TextEffect.cs
- DataTemplateKey.cs
- FixedTextContainer.cs
- XmlWrappingReader.cs
- TdsParserStateObject.cs
- FamilyMap.cs
- ExternalCalls.cs
- ToolboxBitmapAttribute.cs
- InternalsVisibleToAttribute.cs
- XmlSchemaGroupRef.cs
- AssemblyCache.cs
- SecurityElement.cs
- _StreamFramer.cs
- InputLanguage.cs
- XmlDictionaryWriter.cs
- __FastResourceComparer.cs
- WinFormsComponentEditor.cs
- WeakEventManager.cs
- StickyNote.cs
- ItemChangedEventArgs.cs
- XmlDataImplementation.cs
- Model3DGroup.cs
- Ticks.cs
- SecurityRequiresReviewAttribute.cs
- ByteStack.cs
- AssemblyResourceLoader.cs
- DoubleCollection.cs
- ContextQuery.cs
- EncryptedKey.cs
- ZoneButton.cs
- ClientConfigPaths.cs
- HandlerBase.cs
- ListControlConvertEventArgs.cs
- BindingNavigator.cs
- Query.cs
- Region.cs
- _SslState.cs
- SQLDecimal.cs
- PeerCollaborationPermission.cs
- HttpHeaderCollection.cs
- Pair.cs
- BrowserCapabilitiesCodeGenerator.cs
- UInt32Storage.cs
- Drawing.cs
- SqlDataSourceFilteringEventArgs.cs
- Util.cs