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
- WCFModelStrings.Designer.cs
- ObfuscateAssemblyAttribute.cs
- GroupItem.cs
- LocalIdKeyIdentifierClause.cs
- DataPager.cs
- ValidationRuleCollection.cs
- ProviderSettingsCollection.cs
- QilReference.cs
- path.cs
- ObjectReferenceStack.cs
- DependencyPropertyConverter.cs
- CssTextWriter.cs
- SerializationInfo.cs
- SingleObjectCollection.cs
- RTLAwareMessageBox.cs
- View.cs
- XhtmlBasicCalendarAdapter.cs
- SQLBinary.cs
- DiscreteKeyFrames.cs
- HTMLTagNameToTypeMapper.cs
- DataGridLength.cs
- PostBackTrigger.cs
- keycontainerpermission.cs
- DataGridViewButtonColumn.cs
- CqlIdentifiers.cs
- StaticSiteMapProvider.cs
- TextTreeInsertElementUndoUnit.cs
- WindowsPen.cs
- base64Transforms.cs
- MachineSettingsSection.cs
- Knowncolors.cs
- GroupByExpressionRewriter.cs
- WebEvents.cs
- VerticalAlignConverter.cs
- FontStyles.cs
- FlatButtonAppearance.cs
- FrameworkElementFactory.cs
- ReaderWriterLockSlim.cs
- ControlPropertyNameConverter.cs
- FixedNode.cs
- DescendantOverDescendantQuery.cs
- XmlSerializerOperationBehavior.cs
- RSAPKCS1SignatureFormatter.cs
- ThreadStartException.cs
- EntityModelSchemaGenerator.cs
- QueryInterceptorAttribute.cs
- HtmlDocument.cs
- IndentTextWriter.cs
- SizeChangedInfo.cs
- SafeNativeMethodsOther.cs
- TextRange.cs
- BufferedStream.cs
- XmlSignificantWhitespace.cs
- ObjectManager.cs
- DbCommandDefinition.cs
- DoubleLinkList.cs
- _ConnectStream.cs
- Mutex.cs
- MultiAsyncResult.cs
- WindowsImpersonationContext.cs
- AlgoModule.cs
- SessionPageStatePersister.cs
- LogManagementAsyncResult.cs
- Vector.cs
- __Error.cs
- AxHost.cs
- SrgsSemanticInterpretationTag.cs
- XmlBaseWriter.cs
- CacheMode.cs
- TemplateParser.cs
- SystemKeyConverter.cs
- CollectionBase.cs
- DictationGrammar.cs
- MetafileHeaderWmf.cs
- ObjectDataSourceFilteringEventArgs.cs
- GeneralTransform2DTo3DTo2D.cs
- SchemaTableOptionalColumn.cs
- PathData.cs
- DBConcurrencyException.cs
- DetailsViewPageEventArgs.cs
- GeneratedView.cs
- TextRenderer.cs
- _SecureChannel.cs
- ClientRolePrincipal.cs
- StrokeNodeData.cs
- SqlTypesSchemaImporter.cs
- XmlWriterTraceListener.cs
- PrinterSettings.cs
- XmlDataSourceView.cs
- MouseGestureConverter.cs
- ChannelFactory.cs
- BrowserCapabilitiesCompiler.cs
- ValueConversionAttribute.cs
- SQLByteStorage.cs
- ClientRolePrincipal.cs
- WebControlsSection.cs
- ValidateNames.cs
- HtmlShimManager.cs
- BamlCollectionHolder.cs
- WebPartActionVerb.cs