Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ComponentConverter.cs / 1305376 / 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
- FixedStringLookup.cs
- XPathNodeHelper.cs
- WorkflowTransactionService.cs
- SerTrace.cs
- ProviderSettingsCollection.cs
- DiagnosticEventProvider.cs
- BinaryObjectReader.cs
- ToolTipService.cs
- TriggerAction.cs
- CrossContextChannel.cs
- SqlFlattener.cs
- FormViewDeleteEventArgs.cs
- CodeGotoStatement.cs
- ProtectedProviderSettings.cs
- BindingMemberInfo.cs
- DocumentSequence.cs
- Int32RectValueSerializer.cs
- DataGridPageChangedEventArgs.cs
- OracleRowUpdatedEventArgs.cs
- SctClaimDictionary.cs
- AsymmetricKeyExchangeDeformatter.cs
- TreeViewBindingsEditor.cs
- RangeEnumerable.cs
- SurrogateSelector.cs
- WeakReferenceKey.cs
- TransformGroup.cs
- SR.Designer.cs
- ListBoxItem.cs
- ColorPalette.cs
- TabControlCancelEvent.cs
- InstalledFontCollection.cs
- Endpoint.cs
- ToolStripItem.cs
- RequestSecurityToken.cs
- EncodingInfo.cs
- MemberHolder.cs
- DefaultHttpHandler.cs
- CurrentChangingEventArgs.cs
- FloaterBaseParagraph.cs
- PageRouteHandler.cs
- EntityDataSourceSelectedEventArgs.cs
- DuplicateWaitObjectException.cs
- ExtenderProvidedPropertyAttribute.cs
- QilTypeChecker.cs
- DesignSurfaceCollection.cs
- TextEditor.cs
- PerfCounterSection.cs
- ConfigurationLockCollection.cs
- TreeNodeStyleCollection.cs
- CodeDirectionExpression.cs
- SqlReorderer.cs
- DependencyPropertyKey.cs
- ClientConfigurationSystem.cs
- ScrollContentPresenter.cs
- ParsedAttributeCollection.cs
- DataKey.cs
- mongolianshape.cs
- WebBrowserEvent.cs
- EventLogReader.cs
- RotateTransform.cs
- SamlAssertion.cs
- ServiceModelConfigurationElementCollection.cs
- localization.cs
- HttpHandlersSection.cs
- XmlCharType.cs
- COM2IProvidePropertyBuilderHandler.cs
- ContextMarshalException.cs
- MultiSelector.cs
- ComplexTypeEmitter.cs
- StorageTypeMapping.cs
- ReferenceEqualityComparer.cs
- CodeTypeReferenceCollection.cs
- InlinedAggregationOperatorEnumerator.cs
- AssemblyBuilder.cs
- StringResourceManager.cs
- EntitySet.cs
- CurrentChangingEventArgs.cs
- GestureRecognitionResult.cs
- AdvancedBindingEditor.cs
- GridSplitterAutomationPeer.cs
- InstanceCreationEditor.cs
- TopClause.cs
- BreadCrumbTextConverter.cs
- XmlParser.cs
- Line.cs
- DataReaderContainer.cs
- AssociationType.cs
- While.cs
- ExpressionDumper.cs
- XhtmlBasicTextViewAdapter.cs
- PrefixHandle.cs
- PixelFormat.cs
- WindowsFormsLinkLabel.cs
- ProcessExitedException.cs
- HttpHandlerAction.cs
- DbException.cs
- TextSchema.cs
- Polygon.cs
- HttpVersion.cs
- IconBitmapDecoder.cs