Use Array.CreateInstance.
More Related Contents:
- Getting attributes of Enum’s value
- How can I evaluate a C# expression dynamically?
- How to dynamically create generic C# object using reflection? [duplicate]
- Setting a property by reflection with a string value
- Dynamically Add C# Properties at Runtime
- How do I get the calling method name and type using reflection? [duplicate]
- Is the use of dynamic considered a bad practice?
- How do I send ctrl+c to a process in c#?
- How to determine if a type implements a specific generic interface type
- Get properties and values from unknown object
- Purpose of Activator.CreateInstance with example?
- How to correctly cast a class to an abstract class when using type generics?
- Creating instance of type without default constructor in C# using reflection
- Docking Window inside another Window
- C# Reflection – Get field values from a simple class
- How to access internal class using Reflection
- What is the “cost” of .NET reflection? [duplicate]
- C# reflection – load assembly and invoke a method if it exists
- Changing read only properties with reflection
- How do I check if a given value is a generic list?
- Reflection: How to get a generic method? [duplicate]
- file exists by file name pattern
- C# Getting value of params using reflection
- How do I prevent print screen
- How can I get the values of the parameters of a calling method?
- How to set value of property where there is no setter
- using type returned by Type.GetType() in c#
- Reflecting a private field from a base class
- what’s the use of string.Clone()?
- Two Types not equal that should be