Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TabControlEvent.cs
- EntityDataSourceChangingEventArgs.cs
- PTProvider.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- EventLog.cs
- BulletChrome.cs
- X509SecurityToken.cs
- CodeDelegateCreateExpression.cs
- TextProviderWrapper.cs
- Viewport3DVisual.cs
- ConfigurationManager.cs
- WriteTimeStream.cs
- CompareValidator.cs
- Control.cs
- LinqDataSourceHelper.cs
- LogReservationCollection.cs
- CircleHotSpot.cs
- BrushMappingModeValidation.cs
- XPathNodeInfoAtom.cs
- HwndAppCommandInputProvider.cs
- IntMinMaxAggregationOperator.cs
- ReachPrintTicketSerializer.cs
- MimeBasePart.cs
- _TLSstream.cs
- SqlEnums.cs
- SimpleType.cs
- objectquery_tresulttype.cs
- NamespaceMapping.cs
- XmlParserContext.cs
- DataGridViewColumnCollection.cs
- DataGridViewCellValueEventArgs.cs
- TextRangeEdit.cs
- ZipIOLocalFileDataDescriptor.cs
- DataContractJsonSerializer.cs
- ReadOnlyPermissionSet.cs
- TableLayoutPanelResizeGlyph.cs
- SignatureGenerator.cs
- DesignTableCollection.cs
- SpAudioStreamWrapper.cs
- PenCursorManager.cs
- EntitySqlQueryBuilder.cs
- LocalFileSettingsProvider.cs
- XamlSerializationHelper.cs
- ResolveNameEventArgs.cs
- AnnouncementDispatcherAsyncResult.cs
- TagPrefixInfo.cs
- DiffuseMaterial.cs
- TypeUnloadedException.cs
- Brushes.cs
- WrappedReader.cs
- Msec.cs
- SendSecurityHeaderElement.cs
- compensatingcollection.cs
- DataRelationCollection.cs
- MemoryMappedView.cs
- IntellisenseTextBox.designer.cs
- WindowInteropHelper.cs
- WindowsNonControl.cs
- Verify.cs
- OdbcConnectionPoolProviderInfo.cs
- Input.cs
- RegexCapture.cs
- NativeObjectSecurity.cs
- RowToFieldTransformer.cs
- BasePattern.cs
- EmptyStringExpandableObjectConverter.cs
- CompiledQuery.cs
- CircleHotSpot.cs
- SpecialNameAttribute.cs
- PaintEvent.cs
- Baml2006Reader.cs
- XmlBufferedByteStreamReader.cs
- CommonDialog.cs
- WeakEventTable.cs
- VectorValueSerializer.cs
- ListViewContainer.cs
- RelatedCurrencyManager.cs
- OrderedDictionaryStateHelper.cs
- SmiContextFactory.cs
- HMACMD5.cs
- ErrorActivity.cs
- CodeFieldReferenceExpression.cs
- PriorityBinding.cs
- UntypedNullExpression.cs
- WinFormsComponentEditor.cs
- HelpKeywordAttribute.cs
- FixedSOMTextRun.cs
- ChannelSinkStacks.cs
- StatusBar.cs
- DataBoundControlAdapter.cs
- SessionPageStateSection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- XmlAttributeCollection.cs
- ResourceExpressionEditorSheet.cs
- SharedRuntimeState.cs
- ZipIOExtraField.cs
- PerspectiveCamera.cs
- WebPartsPersonalizationAuthorization.cs
- DriveNotFoundException.cs
- CapabilitiesPattern.cs