I need somet开发者_开发知识库hing like this:
public string GetName<Type>(Expression<Somestuffhere>) // will bet GetName<Foo>(o => o.Do())
{
...
return "Execute";
}
it is(expression.Body as MethodCallExpression).Method.Name
I need somet开发者_开发知识库hing like this:
public string GetName<Type>(Expression<Somestuffhere>) // will bet GetName<Foo>(o => o.Do())
{
...
return "Execute";
}
it is(expression.Body as MethodCallExpression).Method.Name
精彩评论