Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DataView.cs
- Bezier.cs
- SpecialNameAttribute.cs
- DataGridViewUtilities.cs
- SQLMoney.cs
- DesignerDataTableBase.cs
- EntityProviderFactory.cs
- Condition.cs
- XmlSerializer.cs
- HttpListenerException.cs
- MultipartContentParser.cs
- PolicyLevel.cs
- CodeArgumentReferenceExpression.cs
- PermissionSet.cs
- RelatedEnd.cs
- ZeroOpNode.cs
- LoaderAllocator.cs
- IDataContractSurrogate.cs
- UIElement.cs
- PhysicalFontFamily.cs
- WindowHideOrCloseTracker.cs
- DirectoryGroupQuery.cs
- CompilerGlobalScopeAttribute.cs
- DesignerAttributeInfo.cs
- WindowsStartMenu.cs
- ValidationErrorCollection.cs
- MobileListItemCollection.cs
- TemplateParser.cs
- SignatureHelper.cs
- GrammarBuilder.cs
- SqlParameterCollection.cs
- TableCellCollection.cs
- ShapingEngine.cs
- CFStream.cs
- SqlInfoMessageEvent.cs
- AmbientProperties.cs
- XsdCachingReader.cs
- RepeatButtonAutomationPeer.cs
- XmlSchemaDocumentation.cs
- SourceFileInfo.cs
- JapaneseLunisolarCalendar.cs
- DBConnection.cs
- TreeNodeStyleCollectionEditor.cs
- ObjectViewQueryResultData.cs
- TypeSystemHelpers.cs
- WinEventTracker.cs
- QuerySafeNavigator.cs
- PackWebRequest.cs
- EditingCommands.cs
- ListViewItemCollectionEditor.cs
- propertytag.cs
- SamlNameIdentifierClaimResource.cs
- FastEncoder.cs
- SequenceDesigner.cs
- MessageQueueEnumerator.cs
- ToolStripRendererSwitcher.cs
- InvokeWebService.cs
- NameValueCache.cs
- TaskFormBase.cs
- ProvidePropertyAttribute.cs
- ConfigurationStrings.cs
- datacache.cs
- ProxyElement.cs
- HijriCalendar.cs
- WebSysDefaultValueAttribute.cs
- PersistenceTypeAttribute.cs
- DesignerActionTextItem.cs
- SignatureHelper.cs
- XPathQilFactory.cs
- ValueChangedEventManager.cs
- ClientScriptManagerWrapper.cs
- ArgIterator.cs
- validationstate.cs
- SamlAuthorityBinding.cs
- NumberSubstitution.cs
- PackWebRequest.cs
- PreservationFileReader.cs
- PnrpPermission.cs
- TreeView.cs
- XmlKeywords.cs
- WebPart.cs
- GenericPrincipal.cs
- FixedHighlight.cs
- VerificationAttribute.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ConditionChanges.cs
- PropertyEntry.cs
- ListViewGroupCollectionEditor.cs
- SvcFileManager.cs
- OperandQuery.cs
- ProcessHostServerConfig.cs
- PhoneCall.cs
- RijndaelManagedTransform.cs
- EditingScopeUndoUnit.cs
- XmlBaseReader.cs
- FixUp.cs
- DataControlPagerLinkButton.cs
- XmlSchemaDatatype.cs
- _SpnDictionary.cs
- CriticalHandle.cs