Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ExpandableObjectConverter.cs / 1305376 / 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
- BaseParser.cs
- SessionStateModule.cs
- SchemaImporter.cs
- SvcMapFile.cs
- NavigationProgressEventArgs.cs
- RepeaterItem.cs
- PositiveTimeSpanValidator.cs
- WsdlBuildProvider.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- DependencyPropertyHelper.cs
- AnnotationHighlightLayer.cs
- RelationshipType.cs
- CombinedGeometry.cs
- TableCell.cs
- RecognizerInfo.cs
- ClassImporter.cs
- Point.cs
- BevelBitmapEffect.cs
- XmlSerializerFactory.cs
- ParseElement.cs
- DependencyPropertyKey.cs
- StylusLogic.cs
- COM2TypeInfoProcessor.cs
- OdbcEnvironmentHandle.cs
- RecordManager.cs
- SoapIncludeAttribute.cs
- HwndSubclass.cs
- WasAdminWrapper.cs
- SubqueryRules.cs
- TextSimpleMarkerProperties.cs
- SubqueryRules.cs
- SqlCacheDependency.cs
- GenericUriParser.cs
- TaskResultSetter.cs
- ColumnBinding.cs
- GCHandleCookieTable.cs
- DataControlImageButton.cs
- ServicePointManager.cs
- ScriptResourceHandler.cs
- ResXDataNode.cs
- ToolStripDropDownButton.cs
- OrthographicCamera.cs
- ContentControl.cs
- RSAPKCS1SignatureDeformatter.cs
- QueryCreatedEventArgs.cs
- TabPage.cs
- ProfileBuildProvider.cs
- ServiceMemoryGates.cs
- DbReferenceCollection.cs
- DrawingImage.cs
- MenuItemCollectionEditorDialog.cs
- MultiPropertyDescriptorGridEntry.cs
- DataTablePropertyDescriptor.cs
- TableColumnCollectionInternal.cs
- ReceiveActivityDesigner.cs
- HealthMonitoringSection.cs
- Stacktrace.cs
- Geometry3D.cs
- CollectionAdapters.cs
- WebPartRestoreVerb.cs
- Lease.cs
- TranslateTransform.cs
- X509CertificateStore.cs
- HScrollProperties.cs
- NullableFloatSumAggregationOperator.cs
- StringComparer.cs
- InkCanvas.cs
- SqlExpressionNullability.cs
- ObfuscateAssemblyAttribute.cs
- XPathArrayIterator.cs
- WindowsRichEdit.cs
- CLSCompliantAttribute.cs
- RoleService.cs
- FullTextState.cs
- SmiGettersStream.cs
- ListDataHelper.cs
- TextTreeFixupNode.cs
- CommandHelpers.cs
- ExtentKey.cs
- TextBoxLine.cs
- ByteAnimationBase.cs
- DayRenderEvent.cs
- BaseDataBoundControl.cs
- BufferedGraphicsManager.cs
- ProvideValueServiceProvider.cs
- UTF32Encoding.cs
- CorruptingExceptionCommon.cs
- SqlClientWrapperSmiStream.cs
- CoTaskMemHandle.cs
- KeyToListMap.cs
- SchemaMapping.cs
- SafeNativeMethods.cs
- Permission.cs
- GridItemCollection.cs
- ScrollBar.cs
- TcpChannelHelper.cs
- NativeMethodsOther.cs
- _ProxyChain.cs
- AudioDeviceOut.cs
- EmbeddedMailObject.cs