.net中delegate的使用
js中的写法:
var GetEntityList = function(pParameter){ var list =[]; return list; }; var aEntityList = GetEntityList({});
c#中的写法:
Func<dynamic, List<dynamic>> GetEntityList = delegate (dynamic pParameter) { var list = new List<dynamic>(); return list; }; var aEntityList = GetEntityList(new { });