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
- wgx_render.cs
- BamlStream.cs
- TextTreeRootNode.cs
- DashStyles.cs
- TextRangeProviderWrapper.cs
- DelegateTypeInfo.cs
- SourceItem.cs
- SymbolMethod.cs
- ToolboxSnapDragDropEventArgs.cs
- RuntimeArgumentHandle.cs
- Timer.cs
- HostSecurityManager.cs
- DataGridViewButtonColumn.cs
- InternalControlCollection.cs
- ExternalException.cs
- OdbcRowUpdatingEvent.cs
- SHA384CryptoServiceProvider.cs
- ConnectionProviderAttribute.cs
- DataObjectEventArgs.cs
- CharacterBuffer.cs
- XmlSchemaAnnotated.cs
- X509ClientCertificateAuthentication.cs
- SecurityToken.cs
- RenderData.cs
- MissingSatelliteAssemblyException.cs
- WebServiceData.cs
- QueryTreeBuilder.cs
- SimplePropertyEntry.cs
- dataprotectionpermissionattribute.cs
- DescendantQuery.cs
- CodeRemoveEventStatement.cs
- TripleDES.cs
- TitleStyle.cs
- SponsorHelper.cs
- ScrollProperties.cs
- Compensation.cs
- XmlObjectSerializerReadContextComplex.cs
- XmlHierarchicalDataSourceView.cs
- HttpModulesSection.cs
- Instrumentation.cs
- ColorMatrix.cs
- XmlTextAttribute.cs
- DiffuseMaterial.cs
- WebSysDescriptionAttribute.cs
- ChannelSinkStacks.cs
- Script.cs
- UInt32.cs
- ModelPropertyImpl.cs
- AnimationLayer.cs
- MissingFieldException.cs
- XmlAttribute.cs
- HebrewNumber.cs
- HttpModuleCollection.cs
- SHA1CryptoServiceProvider.cs
- HtmlDocument.cs
- GeneralTransform2DTo3DTo2D.cs
- RestHandler.cs
- ChannelOptions.cs
- BindingSourceDesigner.cs
- SchemaAttDef.cs
- MessageTransmitTraceRecord.cs
- Utilities.cs
- XmlElementAttribute.cs
- UnsafeNativeMethodsCLR.cs
- Menu.cs
- SystemResources.cs
- SqlDataReader.cs
- StructuredTypeEmitter.cs
- ParagraphResult.cs
- SQLDecimalStorage.cs
- DocumentApplicationJournalEntry.cs
- WorkflowFormatterBehavior.cs
- CorrelationQueryBehavior.cs
- Stack.cs
- AudioSignalProblemOccurredEventArgs.cs
- UnauthorizedWebPart.cs
- PermissionListSet.cs
- ProcessMessagesAsyncResult.cs
- ListViewHitTestInfo.cs
- CorrelationManager.cs
- ParenExpr.cs
- EtwTrace.cs
- OrderByBuilder.cs
- NetPipeSection.cs
- Int16Converter.cs
- StreamUpgradeBindingElement.cs
- CompilationUtil.cs
- ArgumentDesigner.xaml.cs
- SpellerError.cs
- TypeViewSchema.cs
- BidOverLoads.cs
- SctClaimDictionary.cs
- HiddenField.cs
- Viewport2DVisual3D.cs
- FormConverter.cs
- IndicCharClassifier.cs
- XmlJsonReader.cs
- PathData.cs
- ServiceOperationListItem.cs
- NullReferenceException.cs