如何使用Newtonsoft JSON.NET将JSON反序列化为IEnumerable <BaseType>
给出以下JSON: [ { "$id": "1", "$type": "MyAssembly.ClassA, MyAssembly", "Email": "me@here.com", }, { "$id": "2", "$type": "MyAssembly.ClassB, MyAssembly", "Email": "me@here.com", } ] 这些类: public abstract class BaseClass { public string Email; } public class ClassA : BaseClass { } public class ClassB : BaseClass { } 如何将JSON反序列化为: IEnumerable<BaseClass> deserialized; 我不能使用,JsonConvert.Deserialize<IEnumerable<BaseClass>>()因为它抱怨BaseClass很抽象。