<@U41BGS868> I'm not terribly experienced in C#, b...
# getting-started
j
@sksk I'm not terribly experienced in C#, but reading the docs real quick it seems to indicate that the type must have an empty constructor. There is no equivalent in terms of parameter types in Kotlin, to my knowledge. If you need to construct an object of that type in the function, though, there is an option - you can get the empty constructor (assuming it exists) through reflection. You can't do that without using a reified parameter type, though. Here's an example:
Copy code
inline fun <reified T> generate() {
    //...
    val instance = T::class.java.newInstance()
    //..
}