a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
35 lines
448 B
C#
35 lines
448 B
C#
class Test
|
|
{
|
|
public static void Main ()
|
|
{
|
|
new BaseJobController ();
|
|
new JobController ();
|
|
}
|
|
}
|
|
|
|
public interface IUser
|
|
{
|
|
}
|
|
|
|
public class User : IUser
|
|
{
|
|
}
|
|
|
|
public interface IJobController
|
|
{
|
|
IUser User { get; }
|
|
}
|
|
|
|
public class BaseController
|
|
{
|
|
public virtual IUser User { get; set; }
|
|
}
|
|
|
|
public class BaseJobController : BaseController
|
|
{
|
|
public new User User { get; set; }
|
|
}
|
|
|
|
public class JobController : BaseJobController, IJobController
|
|
{
|
|
} |