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
- AliasExpr.cs
- XmlParserContext.cs
- BinaryFormatterWriter.cs
- IgnoreSectionHandler.cs
- HwndSourceParameters.cs
- TraceData.cs
- GiveFeedbackEventArgs.cs
- FixedHyperLink.cs
- OleDbInfoMessageEvent.cs
- SrgsGrammarCompiler.cs
- ComPlusServiceLoader.cs
- base64Transforms.cs
- Tablet.cs
- SqlCommandSet.cs
- EventLogEntry.cs
- RequestTimeoutManager.cs
- RayMeshGeometry3DHitTestResult.cs
- UserControl.cs
- CompilerWrapper.cs
- OleDbException.cs
- WindowsProgressbar.cs
- ConstantCheck.cs
- CompressionTracing.cs
- SchemaUtility.cs
- CodeArrayIndexerExpression.cs
- MappingException.cs
- BitArray.cs
- LocalizableResourceBuilder.cs
- IdentityHolder.cs
- SqlParameterizer.cs
- EntityDataSourceSelectingEventArgs.cs
- TagMapCollection.cs
- LinearGradientBrush.cs
- AudioFormatConverter.cs
- SqlCacheDependencySection.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- FieldValue.cs
- UrlAuthorizationModule.cs
- ValueChangedEventManager.cs
- SqlTrackingQuery.cs
- AvTrace.cs
- EdmSchemaAttribute.cs
- OdbcConnection.cs
- DBSqlParserTable.cs
- Soap.cs
- SamlAuthorityBinding.cs
- NavigationHelper.cs
- HMACSHA512.cs
- ColumnWidthChangedEvent.cs
- WorkflowServiceOperationListItem.cs
- ColorConvertedBitmap.cs
- ScaleTransform.cs
- PictureBox.cs
- UIElementParagraph.cs
- DataGridViewCellStyleConverter.cs
- CheckBox.cs
- BasicHttpMessageCredentialType.cs
- RelationshipFixer.cs
- CustomCredentialPolicy.cs
- SHA256.cs
- TemplateControlBuildProvider.cs
- OutputCacheProfileCollection.cs
- XmlDocumentFragment.cs
- DropTarget.cs
- SystemWebSectionGroup.cs
- DesignerAttribute.cs
- HuffModule.cs
- XmlHelper.cs
- KeyPressEvent.cs
- UserNameServiceElement.cs
- ActionFrame.cs
- HtmlElementErrorEventArgs.cs
- Calendar.cs
- ping.cs
- RoutedEventValueSerializer.cs
- FontSizeConverter.cs
- TextEditorContextMenu.cs
- FileEnumerator.cs
- EmptyStringExpandableObjectConverter.cs
- Pkcs7Recipient.cs
- BaseCollection.cs
- D3DImage.cs
- CodeAttributeArgument.cs
- HwndSubclass.cs
- CachingHintValidation.cs
- XmlSchemaComplexContent.cs
- ColorConvertedBitmapExtension.cs
- Page.cs
- WpfMemberInvoker.cs
- GAC.cs
- DataRelation.cs
- FontFamily.cs
- RadioButtonStandardAdapter.cs
- ProfileGroupSettings.cs
- ExtensionQuery.cs
- XmlValidatingReaderImpl.cs
- HtmlInputFile.cs
- TaskForm.cs
- ListView.cs
- PassportAuthenticationEventArgs.cs