NanoByte.Common
Public Member Functions | List of all members
NanoByte.Common.Values.Design.StringConstructorConverter< T > Class Template Reference

Generic type converter for classes that have a constructor with a single string argument and a corresponding object.ToString implementation. More...

Inheritance diagram for NanoByte.Common.Values.Design.StringConstructorConverter< T >:

Public Member Functions

override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
 
override? object ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value)
 
override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
 

Detailed Description

Generic type converter for classes that have a constructor with a single string argument and a corresponding object.ToString implementation.

Template Parameters
TThe type the converter is used for.

Add this attribute to the type:

[TypeConverter(typeof(StringConstructorConverter<NameOfType>))]

The documentation for this class was generated from the following file: