Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;
///
/// Provides
/// a type converter to convert expandable objects to and from various
/// other representations.
///
[HostProtection(SharedState = true)]
public class ExpandableObjectConverter : TypeConverter {
///
///
/// Initializes a new instance of the System.ComponentModel.ExpandableObjectConverter class.
///
///
public ExpandableObjectConverter() {
}
///
///
/// Gets a collection of properties for the type of object
/// specified by the value
/// parameter.
///
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
return TypeDescriptor.GetProperties(value, attributes);
}
///
///
/// Gets a value indicating
/// whether this object supports properties using the
/// specified context.
///
public override bool GetPropertiesSupported(ITypeDescriptorContext context) {
return true;
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeLinePragma.cs
- GetCertificateRequest.cs
- Graphics.cs
- ConfigXmlWhitespace.cs
- ProxyHwnd.cs
- ParameterReplacerVisitor.cs
- SendKeys.cs
- Random.cs
- SqlRowUpdatedEvent.cs
- SettingsSavedEventArgs.cs
- UDPClient.cs
- DataGridViewRowHeaderCell.cs
- TextSelection.cs
- ProtocolsConfigurationHandler.cs
- WmlTextBoxAdapter.cs
- DoubleAnimationBase.cs
- GenericWebPart.cs
- ReservationCollection.cs
- MapPathBasedVirtualPathProvider.cs
- DSASignatureFormatter.cs
- ContractNamespaceAttribute.cs
- TransformerTypeCollection.cs
- TextServicesHost.cs
- ArgumentDirectionHelper.cs
- AspNetCacheProfileAttribute.cs
- RawUIStateInputReport.cs
- Matrix.cs
- DebugInfo.cs
- DeobfuscatingStream.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- TextWriterTraceListener.cs
- UnsafeNativeMethods.cs
- IChannel.cs
- DataGridColumnCollection.cs
- ConfigurationLockCollection.cs
- Compiler.cs
- TimeSpanConverter.cs
- CompilerGeneratedAttribute.cs
- OneToOneMappingSerializer.cs
- TextContainerChangedEventArgs.cs
- TrackingProfileManager.cs
- RemotingServices.cs
- ExceptionTrace.cs
- UrlAuthFailedErrorFormatter.cs
- Socket.cs
- ConditionalAttribute.cs
- WebPartEditorApplyVerb.cs
- HtmlFormParameterWriter.cs
- Marshal.cs
- DataTemplate.cs
- SemanticResultValue.cs
- TypeUnloadedException.cs
- GridToolTip.cs
- ReadOnlyAttribute.cs
- SchemaComplexType.cs
- SerializationObjectManager.cs
- RuleInfoComparer.cs
- UxThemeWrapper.cs
- AmbiguousMatchException.cs
- DefaultDiscoveryService.cs
- HttpProtocolImporter.cs
- cryptoapiTransform.cs
- CodeParameterDeclarationExpression.cs
- XmlAnyAttributeAttribute.cs
- ImageListStreamer.cs
- VisualStateChangedEventArgs.cs
- ArgumentsParser.cs
- Bold.cs
- CompilerError.cs
- ImmutablePropertyDescriptorGridEntry.cs
- Assembly.cs
- CaseInsensitiveHashCodeProvider.cs
- WebPartDisplayModeEventArgs.cs
- DecoderReplacementFallback.cs
- OrderedEnumerableRowCollection.cs
- TimeManager.cs
- SerialPinChanges.cs
- ObfuscationAttribute.cs
- DataTableNameHandler.cs
- SqlUtil.cs
- MessagePropertyVariants.cs
- OutOfProcStateClientManager.cs
- InheritanceRules.cs
- FreezableCollection.cs
- ScrollableControl.cs
- TextProperties.cs
- DefaultHttpHandler.cs
- OrderablePartitioner.cs
- EventLogTraceListener.cs
- ReliableOutputConnection.cs
- ExpressionBuilder.cs
- DataColumnMapping.cs
- Soap.cs
- AnnotationService.cs
- SafeViewOfFileHandle.cs
- HtmlTableCellCollection.cs
- MasterPageParser.cs
- ItemCheckedEvent.cs
- MenuItem.cs
- Options.cs