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
- XPathExpr.cs
- WebControlParameterProxy.cs
- AuthenticateEventArgs.cs
- ApplicationServicesHostFactory.cs
- XmlImplementation.cs
- GridView.cs
- GeneralTransform3D.cs
- NamedElement.cs
- CompositionTarget.cs
- Rect3D.cs
- ReferenceService.cs
- ConditionalAttribute.cs
- TemplateGroupCollection.cs
- SpeechDetectedEventArgs.cs
- Vector3DCollectionValueSerializer.cs
- BooleanAnimationBase.cs
- RowSpanVector.cs
- InternalConfigSettingsFactory.cs
- ToolStripPanelSelectionGlyph.cs
- Pens.cs
- XmlILAnnotation.cs
- CodeVariableReferenceExpression.cs
- SqlFlattener.cs
- ChangePasswordDesigner.cs
- DataGridCaption.cs
- WindowsGraphicsWrapper.cs
- StringDictionary.cs
- DeclaredTypeElementCollection.cs
- DrawingDrawingContext.cs
- OperandQuery.cs
- LineProperties.cs
- DetailsViewRowCollection.cs
- UnaryExpressionHelper.cs
- XmlSchemaAnnotated.cs
- SQLBinary.cs
- HMACSHA384.cs
- Decimal.cs
- RegionIterator.cs
- DataServiceRequestArgs.cs
- AppDomainUnloadedException.cs
- EventListenerClientSide.cs
- CodeNamespaceImportCollection.cs
- DecimalKeyFrameCollection.cs
- RunInstallerAttribute.cs
- ProfileGroupSettings.cs
- FilterElement.cs
- MemoryPressure.cs
- XMLSchema.cs
- ConfigurationSettings.cs
- ADMembershipUser.cs
- _NegoState.cs
- ApplicationSettingsBase.cs
- Message.cs
- Workspace.cs
- TreeNodeEventArgs.cs
- WebPartConnection.cs
- WebPartManager.cs
- DoubleStorage.cs
- PropertyGridView.cs
- ClosableStream.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- EarlyBoundInfo.cs
- ExecutionScope.cs
- ZoomPercentageConverter.cs
- URLMembershipCondition.cs
- TextFormatterHost.cs
- RoutedEventArgs.cs
- BaseTemplateBuildProvider.cs
- StrokeCollectionDefaultValueFactory.cs
- PeerCollaboration.cs
- MaskDesignerDialog.cs
- DbConnectionPoolGroupProviderInfo.cs
- RangeBaseAutomationPeer.cs
- XmlCDATASection.cs
- TransportDefaults.cs
- StaticSiteMapProvider.cs
- Border.cs
- OptimisticConcurrencyException.cs
- BuildProviderUtils.cs
- HttpStaticObjectsCollectionWrapper.cs
- ConfigXmlAttribute.cs
- SystemNetworkInterface.cs
- ContextInformation.cs
- LayoutDump.cs
- DataGridCell.cs
- ConstructorBuilder.cs
- Matrix.cs
- VisualBasicExpressionConverter.cs
- StringBuilder.cs
- GroupBoxRenderer.cs
- FirstMatchCodeGroup.cs
- HTMLTextWriter.cs
- ProfileGroupSettingsCollection.cs
- CommonObjectSecurity.cs
- MemoryFailPoint.cs
- listviewsubitemcollectioneditor.cs
- WinCategoryAttribute.cs
- StylusDownEventArgs.cs
- Odbc32.cs
- mediaeventshelper.cs