我有两节课。
public class Student{
public List<Course> Courses {get;set;}
}
public class Course{
public Student Student {get;set;}
}
我需要在单独的程序集中编译它们。CompileAssemblyFromDom 认为它没有找到另一种类型,这是有道理的,因为这些类是循环依赖的。有什么解决方法可以做到这一点吗?
谢谢。
我有两节课。
public class Student{
public List<Course> Courses {get;set;}
}
public class Course{
public Student Student {get;set;}
}
我需要在单独的程序集中编译它们。CompileAssemblyFromDom 认为它没有找到另一种类型,这是有道理的,因为这些类是循环依赖的。有什么解决方法可以做到这一点吗?
谢谢。