标签:var message 类方法 func handle creat string type domain
//Type type = Type.GetType("Domain.Entitiy." + item.Name);
//object handler = Activator.CreateInstance(type);
//Func<string, QueryStoresOutput> hook = o => ((dynamic)handler).QueryStore((dynamic)o);
//var res = hook(cityCode);
Type type = Type.GetType("Domain.Entitiy." + item.Name);
object handler = Activator.CreateInstance(type);
Func<BusinessSystemSubmitInputModel, QuoteSnapshot> hook =
o => ((dynamic)handler).GetQuote((dynamic)o);
var res = hook(model);
Action<object> hook = message => ((dynamic)handler).HandleMessage((dynamic)message);
标签:var message 类方法 func handle creat string type domain
原文地址:http://www.cnblogs.com/kevin1988/p/6817705.html