我有一个接受匿名类型的IRepository和Repository,但是它抛出了一个错误,无法从List<T>转换为List<T>。我认为这会发生的唯一原因可能是来自IRepository的T和来自Repository的T是模棱两可的。public interface IRepository<T> where T : class void DeserializeJSON
我正在尝试将List<T>转换为BlockingCollection<T>,这是我的代码。List<Job> jobs = new List<Job> new Job() {Id=Guid.NewGuid(), Name="test1" },
new是否有更简单和性能更好的方法将List<T>转换为Blockin