小编nan*_*ano的帖子

Automapper 3.0 - 此平台IMapperRegistry不支持此类型

我更新了我的项目以使用Automapper 3.0.0,现在我的TFS构建没有成功.错误如下:

" ... System.PlatformNotSupportedException:System.PlatformNotSupportedException:此平台上的IMapperRegistry不支持此类型. "

有没有人可以帮我解决这个问题.与此同时,我将恢复到以前的版本,因为那个似乎工作正常.

automapper notsupportedexception automapper-3

38
推荐指数
2
解决办法
7895
查看次数

如何使用linq表达式将方法作为另一个方法的参数传递

我想创建一个在后台线程中运行另一个方法的方法.像这样的东西:

void Method1(string param)
{
    // Some Code
}

void Method2(string param)
{
    // Some Code
}

void RunInThread(AMethod m)
{
   //Run the method in a background thread
}
Run Code Online (Sandbox Code Playgroud)

c# linq expression func

5
推荐指数
1
解决办法
136
查看次数