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
- XmlNullResolver.cs
- DoubleConverter.cs
- ValidationHelper.cs
- UIElementCollection.cs
- FilteredReadOnlyMetadataCollection.cs
- InputLanguageSource.cs
- TextBoxRenderer.cs
- IApplicationTrustManager.cs
- CroppedBitmap.cs
- WindowsGrip.cs
- UrlRoutingHandler.cs
- DataSourceHelper.cs
- CounterCreationDataCollection.cs
- SelectionPattern.cs
- DSASignatureDeformatter.cs
- HttpCapabilitiesBase.cs
- Size3D.cs
- precedingsibling.cs
- PeerApplicationLaunchInfo.cs
- UnsafeNativeMethodsMilCoreApi.cs
- PenThreadPool.cs
- SelectionItemPattern.cs
- TypeConverters.cs
- BaseAutoFormat.cs
- StylusPointPropertyUnit.cs
- ClientConfigurationSystem.cs
- TemplateControlParser.cs
- Currency.cs
- RowUpdatingEventArgs.cs
- NumberFunctions.cs
- OletxVolatileEnlistment.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- VScrollProperties.cs
- ICspAsymmetricAlgorithm.cs
- DocComment.cs
- ObjectConverter.cs
- RotateTransform3D.cs
- VScrollBar.cs
- WebPartsSection.cs
- NullableConverter.cs
- ApplicationHost.cs
- GroupBox.cs
- IssuedTokenParametersEndpointAddressElement.cs
- ComplexBindingPropertiesAttribute.cs
- PageWrapper.cs
- AssociationSetMetadata.cs
- ContentElement.cs
- ConfigXmlDocument.cs
- ImageField.cs
- IndentTextWriter.cs
- KeyboardNavigation.cs
- HTTPNotFoundHandler.cs
- WhitespaceSignificantCollectionAttribute.cs
- ConnectionStringsExpressionBuilder.cs
- MessageBox.cs
- SizeAnimationUsingKeyFrames.cs
- LineServices.cs
- DesignerDataRelationship.cs
- SQLConvert.cs
- EditorZoneBase.cs
- LayoutUtils.cs
- RenameRuleObjectDialog.cs
- AuthenticationException.cs
- Positioning.cs
- BinaryQueryOperator.cs
- WmlValidationSummaryAdapter.cs
- ExpressionEditorSheet.cs
- XmlSchemaAttributeGroupRef.cs
- VScrollProperties.cs
- InvalidAsynchronousStateException.cs
- DeferredReference.cs
- TextDocumentView.cs
- ObjectConverter.cs
- TransformDescriptor.cs
- AuthorizationRuleCollection.cs
- XmlTextReaderImpl.cs
- DynamicValueConverter.cs
- UIElement3DAutomationPeer.cs
- MetafileHeader.cs
- GridItemPattern.cs
- RadioButtonDesigner.cs
- TdsValueSetter.cs
- EncodingDataItem.cs
- COSERVERINFO.cs
- XamlWriterExtensions.cs
- ListDataBindEventArgs.cs
- DefaultValidator.cs
- ServiceDescriptionSerializer.cs
- ImageCodecInfoPrivate.cs
- PEFileReader.cs
- HelloMessageApril2005.cs
- DocumentCollection.cs
- StreamInfo.cs
- HttpGetProtocolImporter.cs
- XamlTreeBuilderBamlRecordWriter.cs
- HMACSHA1.cs
- SortKey.cs
- TextPointer.cs
- XmlSerializerSection.cs
- ObjectViewListener.cs