Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / ExpandableObjectConverter.cs / 1 / 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
- TransportConfigurationTypeElementCollection.cs
- OdbcConnectionPoolProviderInfo.cs
- SignatureResourcePool.cs
- odbcmetadatacolumnnames.cs
- EntityContainerEntitySetDefiningQuery.cs
- ExpressionPrinter.cs
- MultipleViewProviderWrapper.cs
- DetailsViewModeEventArgs.cs
- HttpCacheVaryByContentEncodings.cs
- DurableInstanceProvider.cs
- ExceptionHandler.cs
- COM2ColorConverter.cs
- XPathScanner.cs
- DebugHandleTracker.cs
- NodeLabelEditEvent.cs
- ProfilePropertySettings.cs
- Form.cs
- BaseValidator.cs
- CompilationSection.cs
- PointCollection.cs
- ObjectStorage.cs
- DetailsViewAutoFormat.cs
- CompilerState.cs
- ObjectDataSourceFilteringEventArgs.cs
- XomlCompilerResults.cs
- StylusButtonCollection.cs
- SQLBinary.cs
- OperationAbortedException.cs
- MD5.cs
- RtType.cs
- FtpWebRequest.cs
- InvokeProviderWrapper.cs
- FixedSOMPageConstructor.cs
- FlowDocumentPaginator.cs
- AnimationException.cs
- HttpCookie.cs
- HttpRawResponse.cs
- CachedCompositeFamily.cs
- XmlSchemaSimpleType.cs
- DetailsViewPagerRow.cs
- RoleManagerModule.cs
- BaseTemplateBuildProvider.cs
- CqlErrorHelper.cs
- Propagator.ExtentPlaceholderCreator.cs
- TouchEventArgs.cs
- ConstraintConverter.cs
- SqlClientFactory.cs
- ProjectionPathSegment.cs
- TableColumn.cs
- EdmComplexTypeAttribute.cs
- TdsValueSetter.cs
- DesignTimeTemplateParser.cs
- DispatcherSynchronizationContext.cs
- ExpressionLexer.cs
- nulltextcontainer.cs
- DateTimeOffset.cs
- Stacktrace.cs
- PrintPageEvent.cs
- BreadCrumbTextConverter.cs
- SqlUDTStorage.cs
- RenderingEventArgs.cs
- XsdCachingReader.cs
- Comparer.cs
- SqlDataSourceFilteringEventArgs.cs
- SqlWebEventProvider.cs
- NameValueConfigurationElement.cs
- KerberosTicketHashIdentifierClause.cs
- RtfToXamlLexer.cs
- TreeViewDesigner.cs
- TemplatePropertyEntry.cs
- WebPartAuthorizationEventArgs.cs
- InternalMappingException.cs
- SimpleTypeResolver.cs
- TextProviderWrapper.cs
- DeploymentSection.cs
- XmlSchemaCollection.cs
- GridViewCommandEventArgs.cs
- TreeNodeStyleCollection.cs
- NetStream.cs
- AdRotatorDesigner.cs
- SymbolType.cs
- Cursor.cs
- HitTestDrawingContextWalker.cs
- DataGridViewRowsAddedEventArgs.cs
- DataGridViewSelectedRowCollection.cs
- NullReferenceException.cs
- MdiWindowListStrip.cs
- QilReplaceVisitor.cs
- SoapFault.cs
- InvalidOperationException.cs
- TreeChangeInfo.cs
- SevenBitStream.cs
- ComboBox.cs
- TriggerBase.cs
- XmlWriterSettings.cs
- RadioButton.cs
- TypeListConverter.cs
- MetadataCollection.cs
- DrawingContextWalker.cs
- UnsafeNativeMethods.cs