Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- OdbcCommandBuilder.cs
- SingleQueryOperator.cs
- BasicBrowserDialog.cs
- IEnumerable.cs
- XmlSchemaSimpleTypeUnion.cs
- IdentifierCollection.cs
- NodeFunctions.cs
- RoutingExtensionElement.cs
- Polygon.cs
- DataRelationCollection.cs
- httpstaticobjectscollection.cs
- ModulesEntry.cs
- Converter.cs
- WebPartEditorOkVerb.cs
- SQLDateTime.cs
- WebHeaderCollection.cs
- CustomValidator.cs
- Rectangle.cs
- WorkerRequest.cs
- WebPart.cs
- PlacementWorkspace.cs
- TraceHandler.cs
- OrderedDictionary.cs
- XmlReaderSettings.cs
- MiniAssembly.cs
- InputLanguageProfileNotifySink.cs
- linebase.cs
- ConfigXmlAttribute.cs
- ApplicationCommands.cs
- ElementsClipboardData.cs
- OperationGenerator.cs
- ResourceIDHelper.cs
- ContentIterators.cs
- prefixendpointaddressmessagefiltertable.cs
- SpanIndex.cs
- Reference.cs
- SqlDataSourceQueryEditorForm.cs
- Identifier.cs
- EdmSchemaAttribute.cs
- XPathScanner.cs
- TypefaceMetricsCache.cs
- ValuePatternIdentifiers.cs
- BrowserTree.cs
- PathGeometry.cs
- TraceUtility.cs
- AppDomainFactory.cs
- DirtyTextRange.cs
- ObjectContext.cs
- ChangeBlockUndoRecord.cs
- TypedLocationWrapper.cs
- DataRowIndexBuffer.cs
- MetabaseServerConfig.cs
- ConnectionInterfaceCollection.cs
- AppDomainUnloadedException.cs
- ContextStaticAttribute.cs
- TransformCryptoHandle.cs
- EntityCommandExecutionException.cs
- ConstraintManager.cs
- BinHexEncoder.cs
- ExpandoClass.cs
- Rfc4050KeyFormatter.cs
- NamedPipeConnectionPool.cs
- DateTime.cs
- RawTextInputReport.cs
- ScriptControlDescriptor.cs
- Mappings.cs
- BatchServiceHost.cs
- UTF7Encoding.cs
- AnimatedTypeHelpers.cs
- AttachedPropertyMethodSelector.cs
- VerifyHashRequest.cs
- SqlVersion.cs
- ManagementOperationWatcher.cs
- SQLCharsStorage.cs
- BamlVersionHeader.cs
- WebPartUtil.cs
- ActivitySurrogateSelector.cs
- SpecialFolderEnumConverter.cs
- MsmqChannelFactoryBase.cs
- AssociationTypeEmitter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DiagnosticTraceSchemas.cs
- ResourceLoader.cs
- TrustLevelCollection.cs
- TextModifier.cs
- EnumConverter.cs
- ResourcesGenerator.cs
- RegisteredExpandoAttribute.cs
- DataGridColumn.cs
- RegionInfo.cs
- ToolBarTray.cs
- EncodingTable.cs
- ExtendedProperty.cs
- CacheRequest.cs
- Itemizer.cs
- HtmlButton.cs
- ConnectionConsumerAttribute.cs
- XNodeSchemaApplier.cs
- CellRelation.cs
- StringOutput.cs