在Kotlin中获取泛型类型实例的最佳方法是什么?我希望找到以下C#代码的最佳(如果不是100%完美)近似值:
public T GetValue<T>() where T : new() { return new T(); }
kotlin
kotlin ×1