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
- PropertyContainer.cs
- EntityDataSourceUtil.cs
- ListViewCancelEventArgs.cs
- BamlCollectionHolder.cs
- ExpressionLink.cs
- SignedPkcs7.cs
- EncoderExceptionFallback.cs
- CreateParams.cs
- XmlDocumentSchema.cs
- SequentialOutput.cs
- System.Data.OracleClient_BID.cs
- WeakReference.cs
- TableAdapterManagerMethodGenerator.cs
- CodeCompiler.cs
- SystemIPv4InterfaceProperties.cs
- ClientEventManager.cs
- AddInAttribute.cs
- SetStateEventArgs.cs
- SimpleTypesSurrogate.cs
- PersonalizationStateInfoCollection.cs
- WebBrowserNavigatedEventHandler.cs
- DictionaryBase.cs
- Stack.cs
- IncrementalReadDecoders.cs
- EntityDesignerUtils.cs
- PartitionerQueryOperator.cs
- StylusButtonEventArgs.cs
- HMACSHA1.cs
- TableRowsCollectionEditor.cs
- EventMappingSettings.cs
- HtmlTitle.cs
- Transform3D.cs
- CLSCompliantAttribute.cs
- GridErrorDlg.cs
- Vector3DKeyFrameCollection.cs
- ParallelDesigner.cs
- SoapSchemaMember.cs
- AutoGeneratedFieldProperties.cs
- LinqTreeNodeEvaluator.cs
- SqlConnectionHelper.cs
- TransformDescriptor.cs
- DataGridViewCellCollection.cs
- MatrixUtil.cs
- User.cs
- MatrixAnimationUsingKeyFrames.cs
- DBConcurrencyException.cs
- ISFClipboardData.cs
- ConsumerConnectionPoint.cs
- LinkButton.cs
- Authorization.cs
- SymLanguageType.cs
- ConnectionPoint.cs
- RangeBase.cs
- ObjectManager.cs
- MenuItem.cs
- JoinElimination.cs
- OdbcDataReader.cs
- PerformanceCounterNameAttribute.cs
- SortAction.cs
- StatusBar.cs
- CertificateManager.cs
- CompiledQueryCacheEntry.cs
- Query.cs
- XmlMemberMapping.cs
- PageThemeParser.cs
- UpWmlPageAdapter.cs
- DataTableReader.cs
- Types.cs
- AccessKeyManager.cs
- CreateUserWizardStep.cs
- ThrowHelper.cs
- TypedTableHandler.cs
- ContentFileHelper.cs
- XmlCharCheckingWriter.cs
- XamlStream.cs
- MemberJoinTreeNode.cs
- BulletChrome.cs
- Camera.cs
- WebServiceClientProxyGenerator.cs
- ConfigXmlCDataSection.cs
- ContourSegment.cs
- XmlWellformedWriter.cs
- LoginViewDesigner.cs
- WebPartChrome.cs
- HtmlToClrEventProxy.cs
- Pen.cs
- XmlSchemaComplexContentExtension.cs
- BitmapEffectGroup.cs
- ExpressionBindingCollection.cs
- SafeRightsManagementEnvironmentHandle.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- HMACMD5.cs
- XmlWriterDelegator.cs
- TargetFrameworkUtil.cs
- CompatibleComparer.cs
- SimpleType.cs
- UnsafeNativeMethods.cs
- DictionarySectionHandler.cs
- HwndAppCommandInputProvider.cs
- UDPClient.cs