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
- ConnectionPoolManager.cs
- SelectionBorderGlyph.cs
- SchemaTypeEmitter.cs
- Vector3DCollectionConverter.cs
- ColumnHeaderCollectionEditor.cs
- SelectionHighlightInfo.cs
- EventRoute.cs
- ObjectMaterializedEventArgs.cs
- ReferencedCollectionType.cs
- ScrollBarRenderer.cs
- GridViewColumnHeader.cs
- DebugView.cs
- ApplicationSecurityManager.cs
- Rotation3DAnimationBase.cs
- ParameterCollection.cs
- MatrixAnimationBase.cs
- Location.cs
- SystemColors.cs
- ProtocolElement.cs
- SpeakProgressEventArgs.cs
- HtmlString.cs
- SafeLibraryHandle.cs
- DuplicateWaitObjectException.cs
- CheckBoxBaseAdapter.cs
- TextCompositionEventArgs.cs
- StrokeNodeOperations2.cs
- QueryResults.cs
- EventDrivenDesigner.cs
- TableCellAutomationPeer.cs
- TerminateSequenceResponse.cs
- TreeViewEvent.cs
- autovalidator.cs
- pingexception.cs
- SortDescriptionCollection.cs
- CurrencyManager.cs
- DaylightTime.cs
- SpinWait.cs
- DictionaryContent.cs
- AuthStoreRoleProvider.cs
- SiteMapSection.cs
- RotateTransform.cs
- XmlValueConverter.cs
- AppDomainResourcePerfCounters.cs
- MissingMethodException.cs
- DetailsViewInsertEventArgs.cs
- MsmqBindingElementBase.cs
- AlternationConverter.cs
- TranslateTransform.cs
- panel.cs
- PerformanceCounterCategory.cs
- TabPageDesigner.cs
- EntityKeyElement.cs
- WindowsGraphicsWrapper.cs
- ToolStripContentPanel.cs
- TextFormatterContext.cs
- SecurityKeyIdentifier.cs
- RtfToXamlReader.cs
- SettingsProperty.cs
- GraphicsPath.cs
- CodeTypeOfExpression.cs
- ClientScriptItemCollection.cs
- XPathAncestorIterator.cs
- XPathDocumentNavigator.cs
- AudioSignalProblemOccurredEventArgs.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- MessageBuilder.cs
- IssuanceLicense.cs
- AccessKeyManager.cs
- Invariant.cs
- CodeAccessSecurityEngine.cs
- DataRelationCollection.cs
- SHA256Managed.cs
- ChangeConflicts.cs
- TreeNodeClickEventArgs.cs
- LockedAssemblyCache.cs
- MouseEvent.cs
- ValidationRule.cs
- Transform.cs
- unsafenativemethodstextservices.cs
- ExceptionUtil.cs
- CheckedListBox.cs
- DbConnectionPoolIdentity.cs
- NumericUpDownAcceleration.cs
- SiteIdentityPermission.cs
- CheckBoxRenderer.cs
- SoapSchemaExporter.cs
- PopupRootAutomationPeer.cs
- ColumnResizeUndoUnit.cs
- CodeTypeParameterCollection.cs
- ComponentChangedEvent.cs
- Property.cs
- SqlConnectionPoolProviderInfo.cs
- SecurityResources.cs
- BrowserTree.cs
- SessionStateContainer.cs
- SessionParameter.cs
- Set.cs
- DataSpaceManager.cs
- GridViewEditEventArgs.cs
- ImageSource.cs