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
- ArgumentsParser.cs
- SeverityFilter.cs
- ConditionCollection.cs
- CapabilitiesSection.cs
- DataServiceQueryException.cs
- IImplicitResourceProvider.cs
- AddInSegmentDirectoryNotFoundException.cs
- RequestCachePolicy.cs
- QueryOperatorEnumerator.cs
- CacheSection.cs
- SQLRoleProvider.cs
- WinEventWrap.cs
- QilInvoke.cs
- SecurityToken.cs
- LabelExpression.cs
- TriState.cs
- PropertyDescriptorCollection.cs
- StructuredTypeEmitter.cs
- ProviderException.cs
- CacheOutputQuery.cs
- ThumbAutomationPeer.cs
- DataGridViewMethods.cs
- MediaPlayerState.cs
- DurableEnlistmentState.cs
- WebMessageEncoderFactory.cs
- SubMenuStyle.cs
- VariableValue.cs
- RangeValidator.cs
- ByteAnimationBase.cs
- ObjectParameter.cs
- FreezableOperations.cs
- ListViewGroupItemCollection.cs
- SqlConnectionPoolProviderInfo.cs
- wgx_commands.cs
- GridSplitter.cs
- NamedPipeAppDomainProtocolHandler.cs
- ProfileSettings.cs
- DisplayInformation.cs
- AmbiguousMatchException.cs
- XmlAttribute.cs
- PagesChangedEventArgs.cs
- BatchStream.cs
- DataRowExtensions.cs
- WindowsIPAddress.cs
- UpdateCommandGenerator.cs
- CodeRemoveEventStatement.cs
- TreeNodeCollectionEditor.cs
- XmlReader.cs
- EventSinkHelperWriter.cs
- Model3D.cs
- SQLBinary.cs
- CalendarDay.cs
- CodeCommentStatement.cs
- WSFederationHttpBindingElement.cs
- KeyboardEventArgs.cs
- dsa.cs
- FigureHelper.cs
- DatePickerDateValidationErrorEventArgs.cs
- ResourceProviderFactory.cs
- DrawTreeNodeEventArgs.cs
- AssemblyHash.cs
- NavigatingCancelEventArgs.cs
- StructuralObject.cs
- BufferAllocator.cs
- PassportAuthenticationModule.cs
- ContentElementCollection.cs
- _DisconnectOverlappedAsyncResult.cs
- HMACMD5.cs
- EarlyBoundInfo.cs
- XmlSerializableServices.cs
- TraceSource.cs
- DrawingServices.cs
- TreeBuilder.cs
- XmlWhitespace.cs
- ParseHttpDate.cs
- SerTrace.cs
- SiteMapDataSource.cs
- FilteredAttributeCollection.cs
- CaseInsensitiveOrdinalStringComparer.cs
- RegexCapture.cs
- RuntimeConfig.cs
- XomlCompilerResults.cs
- GeneralTransform3DCollection.cs
- Html32TextWriter.cs
- CmsUtils.cs
- SafePointer.cs
- Exceptions.cs
- SecurityResources.cs
- ProtocolException.cs
- URI.cs
- ByteStream.cs
- BrowserTree.cs
- CapabilitiesSection.cs
- RtType.cs
- HttpDictionary.cs
- SemanticAnalyzer.cs
- X509CertificateStore.cs
- X509Extension.cs
- ClientReliableChannelBinder.cs
- NotifyIcon.cs