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
- Int64AnimationUsingKeyFrames.cs
- SharedPersonalizationStateInfo.cs
- BrowserCapabilitiesFactory35.cs
- ToolStripSplitStackLayout.cs
- UrlPropertyAttribute.cs
- TemplatePropertyEntry.cs
- UrlAuthorizationModule.cs
- OdbcReferenceCollection.cs
- CompilerInfo.cs
- TextTreeTextNode.cs
- CheckableControlBaseAdapter.cs
- XmlNodeChangedEventArgs.cs
- ComplexLine.cs
- Polyline.cs
- IMembershipProvider.cs
- TreeNodeCollection.cs
- PrivacyNoticeBindingElement.cs
- AuthenticationException.cs
- DataServiceExpressionVisitor.cs
- FilterException.cs
- SetterBase.cs
- RecognitionResult.cs
- ApplicationException.cs
- DesignColumn.cs
- MenuItem.cs
- DistributedTransactionPermission.cs
- SqlTriggerContext.cs
- Queue.cs
- Exceptions.cs
- Scene3D.cs
- DoubleKeyFrameCollection.cs
- CollectionBuilder.cs
- ProvidersHelper.cs
- AspNetSynchronizationContext.cs
- BlurBitmapEffect.cs
- CompositeFontFamily.cs
- TypeSystemHelpers.cs
- MailMessage.cs
- IndicCharClassifier.cs
- OneToOneMappingSerializer.cs
- VoiceObjectToken.cs
- TableLayoutColumnStyleCollection.cs
- ReliabilityContractAttribute.cs
- ProtocolImporter.cs
- XmlnsDictionary.cs
- ViewManager.cs
- FileInfo.cs
- FilterElement.cs
- XmlWrappingReader.cs
- XmlValidatingReader.cs
- ScriptControlDescriptor.cs
- ByteConverter.cs
- JsonUriDataContract.cs
- WebExceptionStatus.cs
- TextDecorationLocationValidation.cs
- TextFormatterHost.cs
- TaiwanCalendar.cs
- ScrollBarAutomationPeer.cs
- PackagingUtilities.cs
- DetailsViewDeleteEventArgs.cs
- InstanceHandle.cs
- RowCache.cs
- ReverseInheritProperty.cs
- FontInfo.cs
- SizeAnimationClockResource.cs
- ListComponentEditorPage.cs
- UserControlParser.cs
- UIElementPropertyUndoUnit.cs
- OverflowException.cs
- _BasicClient.cs
- Roles.cs
- DataGridCell.cs
- XNodeValidator.cs
- WebHttpBindingCollectionElement.cs
- OdbcReferenceCollection.cs
- PageSettings.cs
- PublisherIdentityPermission.cs
- SQLSingle.cs
- ImmutableObjectAttribute.cs
- WebPartDescriptionCollection.cs
- ComplexLine.cs
- UserNameSecurityTokenAuthenticator.cs
- AnnotationMap.cs
- AppDomainCompilerProxy.cs
- CheckBox.cs
- LocalizationParserHooks.cs
- SessionStateItemCollection.cs
- TextServicesPropertyRanges.cs
- SHA1Managed.cs
- MimeMapping.cs
- TemplatedControlDesigner.cs
- DateTimeParse.cs
- DocumentPageTextView.cs
- Drawing.cs
- CharacterMetrics.cs
- SqlConnection.cs
- MULTI_QI.cs
- Executor.cs
- WebSysDescriptionAttribute.cs
- DataDocumentXPathNavigator.cs