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
- XamlGridLengthSerializer.cs
- Resources.Designer.cs
- FormViewCommandEventArgs.cs
- StyleConverter.cs
- TemplateApplicationHelper.cs
- StylusTip.cs
- XsdDuration.cs
- BuildProvidersCompiler.cs
- StateWorkerRequest.cs
- JsonWriter.cs
- WebPartMovingEventArgs.cs
- ListBoxItemAutomationPeer.cs
- ProgressBar.cs
- PolyLineSegment.cs
- ToolZone.cs
- TaskHelper.cs
- DBNull.cs
- Margins.cs
- Currency.cs
- IDataContractSurrogate.cs
- FileIOPermission.cs
- GenericWebPart.cs
- ListDictionaryInternal.cs
- SqlRetyper.cs
- CFStream.cs
- TreeNodeCollection.cs
- InternalPolicyElement.cs
- ViewPort3D.cs
- IpcClientChannel.cs
- Membership.cs
- GridViewRowPresenterBase.cs
- IISUnsafeMethods.cs
- HandlerBase.cs
- TCEAdapterGenerator.cs
- Missing.cs
- DataListItem.cs
- ArrayList.cs
- TagMapInfo.cs
- BuildResult.cs
- DataObjectEventArgs.cs
- CodeLinePragma.cs
- AnnotationAuthorChangedEventArgs.cs
- FixedSOMPage.cs
- ModuleElement.cs
- ConstructorNeedsTagAttribute.cs
- DataBindEngine.cs
- CodeGen.cs
- UIPropertyMetadata.cs
- PageContent.cs
- HttpRuntime.cs
- DrawingCollection.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- FixedSOMTableCell.cs
- Int64.cs
- FaultCallbackWrapper.cs
- WebDisplayNameAttribute.cs
- ChildDocumentBlock.cs
- DataViewSettingCollection.cs
- KnownBoxes.cs
- XmlSchemaObjectCollection.cs
- DataGridViewRowsAddedEventArgs.cs
- PropertyChangedEventArgs.cs
- ThumbAutomationPeer.cs
- ChtmlTextWriter.cs
- HtmlInputButton.cs
- ValueTypeFixupInfo.cs
- HtmlInputPassword.cs
- CodeDirectionExpression.cs
- FormsAuthenticationTicket.cs
- PolyQuadraticBezierSegment.cs
- TimelineCollection.cs
- CrossAppDomainChannel.cs
- ParseElementCollection.cs
- TreeSet.cs
- MetadataAssemblyHelper.cs
- Byte.cs
- InternalBufferOverflowException.cs
- RichTextBoxContextMenu.cs
- ObjectDataSourceSelectingEventArgs.cs
- XmlArrayItemAttribute.cs
- X509Chain.cs
- CapabilitiesUse.cs
- TitleStyle.cs
- HttpSessionStateBase.cs
- IconBitmapDecoder.cs
- Internal.cs
- ResolvedKeyFrameEntry.cs
- CustomWebEventKey.cs
- SchemaNamespaceManager.cs
- CellLabel.cs
- ExpressionPrinter.cs
- InputLanguageManager.cs
- EndEvent.cs
- ExpressionConverter.cs
- DeobfuscatingStream.cs
- TemplatedWizardStep.cs
- OleDbConnectionFactory.cs
- JapaneseLunisolarCalendar.cs
- DbCommandDefinition.cs
- isolationinterop.cs