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
- SelectionPatternIdentifiers.cs
- InfoCardRSACryptoProvider.cs
- WebPartConnectionsConfigureVerb.cs
- Point.cs
- DataRow.cs
- OleDbErrorCollection.cs
- TemplateManager.cs
- Typography.cs
- MethodExpr.cs
- SourceExpressionException.cs
- UriExt.cs
- XamlTypeMapper.cs
- ThreadAbortException.cs
- RegisteredHiddenField.cs
- PreProcessor.cs
- SvcMapFileLoader.cs
- QuotedPrintableStream.cs
- smtpconnection.cs
- XmlEntity.cs
- TouchFrameEventArgs.cs
- CheckBoxStandardAdapter.cs
- SerializationObjectManager.cs
- SqlDataSourceConfigureSortForm.cs
- ContentControl.cs
- QilXmlWriter.cs
- PathFigure.cs
- GridView.cs
- ServiceOperationInfoTypeConverter.cs
- ElementHostPropertyMap.cs
- oledbmetadatacollectionnames.cs
- DataTablePropertyDescriptor.cs
- Roles.cs
- CodeAccessPermission.cs
- MessageBox.cs
- MemberInfoSerializationHolder.cs
- DefaultHttpHandler.cs
- ImageMapEventArgs.cs
- ClonableStack.cs
- UserControl.cs
- ToolStripCodeDomSerializer.cs
- InfiniteIntConverter.cs
- ComboBox.cs
- ClickablePoint.cs
- TreeChangeInfo.cs
- DataSvcMapFile.cs
- TextTreeUndo.cs
- TextEditorLists.cs
- LineServicesCallbacks.cs
- TransformPatternIdentifiers.cs
- ExtensionElementCollection.cs
- BlurEffect.cs
- StrongNameUtility.cs
- ClientEventManager.cs
- FileReader.cs
- WebAdminConfigurationHelper.cs
- MergeFailedEvent.cs
- XmlTextReaderImplHelpers.cs
- UnauthorizedAccessException.cs
- RenderingBiasValidation.cs
- StrokeCollection.cs
- SmtpDigestAuthenticationModule.cs
- ByteViewer.cs
- SerialStream.cs
- ProgressBarAutomationPeer.cs
- DataGridViewRowsAddedEventArgs.cs
- ISAPIRuntime.cs
- RadioButton.cs
- DataGridPagerStyle.cs
- Vector3DConverter.cs
- WS2007FederationHttpBindingElement.cs
- TrackingDataItem.cs
- XmlCDATASection.cs
- CornerRadiusConverter.cs
- Dispatcher.cs
- Converter.cs
- CategoryAttribute.cs
- ElementUtil.cs
- XmlSecureResolver.cs
- HtmlToClrEventProxy.cs
- IsolatedStorageFileStream.cs
- UserControlCodeDomTreeGenerator.cs
- SectionUpdates.cs
- CompoundFileIOPermission.cs
- TextEmbeddedObject.cs
- TemplatedControlDesigner.cs
- DesignBindingValueUIHandler.cs
- PackageStore.cs
- MetaModel.cs
- SafeRegistryHandle.cs
- XsltLibrary.cs
- _ContextAwareResult.cs
- TemplateBaseAction.cs
- ErrorsHelper.cs
- DetailsViewDeletedEventArgs.cs
- BuildProvider.cs
- XmlMessageFormatter.cs
- DiscoveryReferences.cs
- UnitySerializationHolder.cs
- XpsPartBase.cs
- SwitchAttribute.cs