Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ExpandableObjectConverter.cs / 1305376 / ExpandableObjectConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using Microsoft.Win32; using System.Collections; using System.ComponentModel.Design; using System.Diagnostics; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class ExpandableObjectConverter : TypeConverter { ///Provides /// a type converter to convert expandable objects to and from various /// other representations. ////// public ExpandableObjectConverter() { } ////// Initializes a new instance of the System.ComponentModel.ExpandableObjectConverter 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 object /// 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.Design; using System.Diagnostics; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class ExpandableObjectConverter : TypeConverter { ///Provides /// a type converter to convert expandable objects to and from various /// other representations. ////// public ExpandableObjectConverter() { } ////// Initializes a new instance of the System.ComponentModel.ExpandableObjectConverter 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 object /// 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
- FieldAccessException.cs
- ConversionContext.cs
- CatalogPartChrome.cs
- Span.cs
- IgnoreDataMemberAttribute.cs
- TextBounds.cs
- XmlSchemaCollection.cs
- PackageRelationship.cs
- TextView.cs
- TemplateBuilder.cs
- DataGridViewCellConverter.cs
- Exceptions.cs
- CqlWriter.cs
- Action.cs
- InputGestureCollection.cs
- KeyConstraint.cs
- ColorInterpolationModeValidation.cs
- URIFormatException.cs
- ClientRoleProvider.cs
- CssTextWriter.cs
- Typeface.cs
- EventItfInfo.cs
- AttributeCollection.cs
- AcceleratedTokenProviderState.cs
- GraphicsState.cs
- DropShadowBitmapEffect.cs
- UrlPath.cs
- WebResourceAttribute.cs
- PageParser.cs
- TextBoxRenderer.cs
- InkSerializer.cs
- ConvertersCollection.cs
- SerializationObjectManager.cs
- COM2TypeInfoProcessor.cs
- DependencySource.cs
- ListDictionaryInternal.cs
- ContainerUtilities.cs
- DropDownList.cs
- DnsPermission.cs
- SynchronizationContext.cs
- MessageDesigner.cs
- ReferentialConstraint.cs
- ChildChangedEventArgs.cs
- UnhandledExceptionEventArgs.cs
- Closure.cs
- GridView.cs
- SafeNativeHandle.cs
- RelatedCurrencyManager.cs
- XmlSchemas.cs
- ServiceOperationInfoTypeConverter.cs
- HandleInitializationContext.cs
- DesignTimeTemplateParser.cs
- InheritanceService.cs
- BlurBitmapEffect.cs
- PostBackTrigger.cs
- ObjectDataSourceFilteringEventArgs.cs
- AtomMaterializerLog.cs
- XmlComment.cs
- XmlDictionaryString.cs
- SourceLineInfo.cs
- IncomingWebResponseContext.cs
- ChannelSinkStacks.cs
- HandlerFactoryCache.cs
- Query.cs
- DataGridViewCell.cs
- Interop.cs
- DataGridViewColumnStateChangedEventArgs.cs
- TextModifier.cs
- DSASignatureDeformatter.cs
- ExpressionsCollectionConverter.cs
- SafeViewOfFileHandle.cs
- GradientStop.cs
- ToolBarPanel.cs
- ObjectKeyFrameCollection.cs
- GradientPanel.cs
- SmiSettersStream.cs
- QueryContinueDragEvent.cs
- HelpFileFileNameEditor.cs
- CodeTypeParameter.cs
- Matrix3D.cs
- latinshape.cs
- XhtmlStyleClass.cs
- ListBindingHelper.cs
- SecurityElement.cs
- Icon.cs
- DataRowExtensions.cs
- UnsafeNativeMethodsMilCoreApi.cs
- Interlocked.cs
- Vector3DCollectionConverter.cs
- TextFormatterImp.cs
- XmlToDatasetMap.cs
- ServiceContractAttribute.cs
- FirewallWrapper.cs
- Error.cs
- DispatcherSynchronizationContext.cs
- IUnknownConstantAttribute.cs
- MultitargetingHelpers.cs
- CookielessHelper.cs
- TreeNodeCollection.cs
- Stream.cs