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
- SafeEventLogReadHandle.cs
- SqlWebEventProvider.cs
- ServiceBuildProvider.cs
- XmlKeywords.cs
- DefaultPrintController.cs
- DBConcurrencyException.cs
- XmlDigitalSignatureProcessor.cs
- JsonObjectDataContract.cs
- ProjectedSlot.cs
- Lock.cs
- ListMarkerLine.cs
- XsltContext.cs
- EmptyEnumerable.cs
- CaseExpr.cs
- DocumentViewerAutomationPeer.cs
- MobileTemplatedControlDesigner.cs
- HostingEnvironment.cs
- ContentType.cs
- ByteStack.cs
- EdmPropertyAttribute.cs
- DataBindingList.cs
- UncommonField.cs
- XamlSerializerUtil.cs
- GridViewCommandEventArgs.cs
- CommonXSendMessage.cs
- DesignerAttribute.cs
- DBDataPermissionAttribute.cs
- DbConnectionPoolIdentity.cs
- DataServiceRequest.cs
- CharacterHit.cs
- HttpCacheVary.cs
- _ServiceNameStore.cs
- TdsParser.cs
- BufferModesCollection.cs
- SafeUserTokenHandle.cs
- HtmlElementCollection.cs
- DrawingState.cs
- NumericUpDownAcceleration.cs
- Base64WriteStateInfo.cs
- String.cs
- SqlDataSourceQueryEditorForm.cs
- ToolStripTextBox.cs
- XmlSchemaObject.cs
- RegistryPermission.cs
- MetricEntry.cs
- OAVariantLib.cs
- XmlComment.cs
- Image.cs
- DockPanel.cs
- BooleanAnimationUsingKeyFrames.cs
- Convert.cs
- ActiveDocumentEvent.cs
- CultureSpecificCharacterBufferRange.cs
- CrossSiteScriptingValidation.cs
- DataGridViewCellConverter.cs
- ToolStripSeparator.cs
- TripleDES.cs
- TransportChannelListener.cs
- Identifier.cs
- indexingfiltermarshaler.cs
- TypeLibConverter.cs
- EntityUtil.cs
- EventPrivateKey.cs
- NativeMethodsOther.cs
- DesignerCategoryAttribute.cs
- COM2PropertyDescriptor.cs
- SQLDouble.cs
- BitmapScalingModeValidation.cs
- Native.cs
- HttpProtocolReflector.cs
- rsa.cs
- cookieexception.cs
- ItemMap.cs
- RuntimeConfigurationRecord.cs
- HtmlElementCollection.cs
- AssociationTypeEmitter.cs
- TypeToken.cs
- MULTI_QI.cs
- PackageRelationship.cs
- XsdDataContractImporter.cs
- RegexCharClass.cs
- ReachPageContentCollectionSerializerAsync.cs
- CodeObjectCreateExpression.cs
- HandlerFactoryCache.cs
- InfoCardArgumentException.cs
- ExpressionEvaluator.cs
- MissingMethodException.cs
- InvalidFilterCriteriaException.cs
- MissingFieldException.cs
- AsyncResult.cs
- ClientTargetSection.cs
- JoinElimination.cs
- TreeViewHitTestInfo.cs
- BlobPersonalizationState.cs
- DependencyPropertyKind.cs
- ClientType.cs
- RuleAction.cs
- DesignerCategoryAttribute.cs
- ADMembershipUser.cs
- GridSplitterAutomationPeer.cs