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
- Vector3D.cs
- DiscoveryClientReferences.cs
- Base64Encoder.cs
- EventDescriptor.cs
- SafeJobHandle.cs
- CharacterBuffer.cs
- ClientSection.cs
- WebPartConnectionsDisconnectVerb.cs
- RSACryptoServiceProvider.cs
- EndOfStreamException.cs
- CapiNative.cs
- LookupBindingPropertiesAttribute.cs
- ConfigurationStrings.cs
- EnumUnknown.cs
- DrawingGroup.cs
- TextRunTypographyProperties.cs
- SchemaImporter.cs
- OleDbStruct.cs
- XPathBuilder.cs
- ToolStripCodeDomSerializer.cs
- TextContainerChangedEventArgs.cs
- BindingExpression.cs
- StaticSiteMapProvider.cs
- RoutedEvent.cs
- SpecialNameAttribute.cs
- X509CertificateChain.cs
- TypeGeneratedEventArgs.cs
- GridView.cs
- TaskHelper.cs
- ExpressionBinding.cs
- SQLInt64Storage.cs
- PeerInvitationResponse.cs
- LinkGrep.cs
- TextRangeProviderWrapper.cs
- ClonableStack.cs
- XPathDescendantIterator.cs
- LateBoundBitmapDecoder.cs
- ExternalFile.cs
- translator.cs
- Item.cs
- SourceFileInfo.cs
- ConnectorSelectionGlyph.cs
- JoinCqlBlock.cs
- SqlAliasesReferenced.cs
- DocComment.cs
- DocumentApplicationJournalEntry.cs
- MimeMapping.cs
- Timer.cs
- InstanceData.cs
- RadioButton.cs
- WebBrowserEvent.cs
- OleDbRowUpdatingEvent.cs
- WindowsIdentity.cs
- TextServicesCompartmentContext.cs
- PropertySourceInfo.cs
- WebPartCollection.cs
- Accessible.cs
- AnimatedTypeHelpers.cs
- Expression.DebuggerProxy.cs
- AsymmetricCryptoHandle.cs
- LineVisual.cs
- PreloadHost.cs
- IsolatedStoragePermission.cs
- PhonemeConverter.cs
- validationstate.cs
- HttpListenerPrefixCollection.cs
- SqlConnectionString.cs
- PrivilegedConfigurationManager.cs
- PageFunction.cs
- ManualResetEvent.cs
- SymmetricKeyWrap.cs
- BaseDataBoundControl.cs
- LoginView.cs
- ManifestSignatureInformation.cs
- NameNode.cs
- CapiSafeHandles.cs
- WebReferencesBuildProvider.cs
- QueryOutputWriter.cs
- ApplicationActivator.cs
- AuthorizationRuleCollection.cs
- Delegate.cs
- SpotLight.cs
- PassportAuthenticationEventArgs.cs
- AlternateView.cs
- InvalidAsynchronousStateException.cs
- GridEntryCollection.cs
- BooleanExpr.cs
- DependencyPropertyDescriptor.cs
- SoapConverter.cs
- ParameterToken.cs
- HyperLinkStyle.cs
- ChannelManagerBase.cs
- X509Certificate.cs
- SapiGrammar.cs
- Stylesheet.cs
- IteratorFilter.cs
- TextBounds.cs
- CodeBinaryOperatorExpression.cs
- ResponseBodyWriter.cs
- ZoneIdentityPermission.cs