Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- FileUpload.cs
- WinInetCache.cs
- HttpModuleCollection.cs
- BinaryFormatterWriter.cs
- InkCanvasAutomationPeer.cs
- TrackingAnnotationCollection.cs
- ComboBoxAutomationPeer.cs
- Rotation3DKeyFrameCollection.cs
- DataBindingCollectionEditor.cs
- WebHeaderCollection.cs
- BitmapDownload.cs
- BackoffTimeoutHelper.cs
- TypeDescriptionProvider.cs
- CompositeActivityDesigner.cs
- BitmapSource.cs
- BuildProvider.cs
- DomNameTable.cs
- DesignerSerializationManager.cs
- SamlSecurityTokenAuthenticator.cs
- HiddenFieldPageStatePersister.cs
- GridItemCollection.cs
- PropertyEmitter.cs
- Properties.cs
- OutputBuffer.cs
- BaseTemplateParser.cs
- FrameworkElementFactoryMarkupObject.cs
- LabelInfo.cs
- ZoneIdentityPermission.cs
- SchemaEntity.cs
- DetailsViewDeletedEventArgs.cs
- SqlCommand.cs
- HttpRuntimeSection.cs
- UdpConstants.cs
- OdbcEnvironmentHandle.cs
- XmlBindingWorker.cs
- _RequestLifetimeSetter.cs
- DataSourceCacheDurationConverter.cs
- Bits.cs
- ConnectionInterfaceCollection.cs
- IPCCacheManager.cs
- ZoneButton.cs
- WebBrowserDocumentCompletedEventHandler.cs
- WebPartDescription.cs
- pingexception.cs
- AuthenticationService.cs
- DrawingGroup.cs
- WindowShowOrOpenTracker.cs
- GenericTypeParameterBuilder.cs
- SmtpTransport.cs
- ButtonFieldBase.cs
- DynamicRouteExpression.cs
- PersonalizationProvider.cs
- EmptyEnumerator.cs
- Activity.cs
- FillRuleValidation.cs
- WebDisplayNameAttribute.cs
- XDeferredAxisSource.cs
- ServiceOperation.cs
- CharacterHit.cs
- SystemMulticastIPAddressInformation.cs
- SystemTcpConnection.cs
- ObjectPropertyMapping.cs
- Enlistment.cs
- MenuAutomationPeer.cs
- NamespaceEmitter.cs
- ValidationRuleCollection.cs
- RemoteCryptoSignHashRequest.cs
- RealProxy.cs
- PartialCachingControl.cs
- StatusBarItem.cs
- FormViewDeletedEventArgs.cs
- TemplateControlCodeDomTreeGenerator.cs
- TreeNodeBinding.cs
- CaseInsensitiveHashCodeProvider.cs
- PolicyStatement.cs
- ObjectDataSourceStatusEventArgs.cs
- EntityClassGenerator.cs
- TextRange.cs
- IgnoreFlushAndCloseStream.cs
- RangeContentEnumerator.cs
- PermissionSetTriple.cs
- StreamBodyWriter.cs
- XmlUnspecifiedAttribute.cs
- RuleSettings.cs
- CornerRadiusConverter.cs
- SqlErrorCollection.cs
- CookieParameter.cs
- MachineKeyConverter.cs
- DesignTableCollection.cs
- RoutedEventArgs.cs
- DeclarativeCatalogPart.cs
- StateMachineSubscription.cs
- DependsOnAttribute.cs
- ISAPIApplicationHost.cs
- RangeBase.cs
- AppSecurityManager.cs
- WindowsImpersonationContext.cs
- Literal.cs
- OLEDB_Util.cs
- OleDbConnectionPoolGroupProviderInfo.cs