示例#1
0
        public void DerivedTypeTest()
        {
            IClassInterface ici = new ClassInterface();
            ObjectMapper    om  = Map.GetObjectMapper(ici.GetType());
            MemberMapper    mm  = om["classInterface"];

            mm.SetValue(ici, new ClassInterface());
        }
示例#2
0
 public ClassController(ClassInterface __class, IHostingEnvironment hostingEnvironment, IConfiguration configuration)
 {
     _class = __class;
     _hostingEnvironment = hostingEnvironment;
     _config             = configuration;
 }
示例#3
0
		public void DerivedTypeTest()
		{
			IClassInterface ici = new ClassInterface();
			ObjectMapper om = Map.GetObjectMapper(ici.GetType());
			MemberMapper mm = om["classInterface"];
			mm.SetValue(ici, new ClassInterface());
		}