Yes, there is:
var genericListType = typeof(List<>);
var specificListType = genericListType.MakeGenericType(typeof(double));
var list = Activator.CreateInstance(specificListType);
More Related Contents:
- Generics in C#, using type of a variable as parameter [duplicate]
- What is cool about generics, why use them?
- Testing if object is of generic type in C#
- C# use System.Type as Generic parameter
- Why isn’t Array a generic type?
- How to call generic method with a given Type object? [duplicate]
- Using IsAssignableFrom with ‘open’ generic types
- Is there a reasonable approach to “default” type parameters in C# Generics?
- Build c# Generic Type definition at runtime
- KeyValuePair with generic values [closed]
- How do I clone a generic list in C#?
- Remove duplicates from a List in C#
- How to dynamically create generic C# object using reflection? [duplicate]
- Generic Repository or Specific Repository for each entity?
- Is there a generic constructor with parameter constraint in C#?
- How to convert a gi-normous integer (in string format) to hex format? (C#)
- Making a generic property
- foreach vs someList.ForEach(){}
- Calling a static method on a generic type parameter
- No type inference with generic extension method
- How do I make the return type of a method generic?
- explicitly cast generic type parameters to any interface
- Specifying generic collection type param at runtime [duplicate]
- C# Generic Type Inference With Multiple Types
- How do I check if a given value is a generic list?
- Declare a generic type instance dynamically [duplicate]
- Checking if an object is a number
- C# : how to – single instance application that accepts new parameters?
- How does Java’s use-site variance compare to C#’s declaration site variance?
- Convert DataTable to Generic List in C#