using System.ComponentModel;
TypeConverter typeConverter = TypeDescriptor.GetConverter(propType);
object propValue = typeConverter.ConvertFromString(inputValue);
More Related Contents:
- How do I use reflection to call a generic method?
- Check if a class is derived from a generic class
- How to dynamically create generic C# object using reflection? [duplicate]
- Testing if object is of generic type in C#
- Calling generic method with a type argument known only at execution time [duplicate]
- getting type T from IEnumerable
- How to call generic method with a given Type object? [duplicate]
- Get a generic method without using GetMethods
- Using IsAssignableFrom with ‘open’ generic types
- How do I create a generic class from a string in C#? [duplicate]
- Get all types implementing specific open generic type
- How do I check if a given value is a generic list?
- C# instantiate generic List from reflected Type [duplicate]
- How can I get the correct text definition of a generic type using reflection?
- How can I write a generic container class that implements a given interface in C#?
- using type returned by Type.GetType() in c#
- Get derived class type from a base’s class static method
- How to use Activator to create an instance of a generic Type and casting it back to that type?
- Create Generic method constraining T to an Enum
- Why can’t the C# constructor infer type?
- Can’t operator == be applied to generic types in C#?
- Nullable type as a generic parameter possible?
- How can I get all classes within a namespace?
- Generic constraint to match numeric types [duplicate]
- Combination of List
- What’s the difference between System.Type and System.RuntimeType in C#?
- Get member to which attribute was applied from inside attribute constructor?
- How to define generic type limit to primitive types?
- Comparing Object properties using reflection
- How does Java’s use-site variance compare to C#’s declaration site variance?