(或者根本不是泛型的类型)。显然,像IList<>这样的非实例化泛型类型并没有像我期望的那样实现IsAssignableFrom:IList<>不能从List<T>中赋值。type.IsGenericType) var genericTypeDefinition = type.GetGenericTypeDefinition当类型是实例化的IList<T>如IList<int>
这是我的斯威夫特班: public var inAppMessagesController: MPInAppMessagesController}
// Functions 如评论中所述,这是一个错误-
不能将“MyClass”类型的值赋值为“MPInAppMessageControllerDelegat