Get current MethodBase in ASP.NET vNext

前端 未结 1 1750
你的背包
你的背包 2021-01-20 02:41

I\'m porting an open source library from the regular .NET 4 Client Profile to DNX Core 5.0. There are quite a few library changes, with properties or methods being moved aro

相关标签:
1条回答
  • 2021-01-20 03:18

    Assuming the method Annotation is in the class TestClass, use

    typeof(TestClass).GetMethod(nameof(Annotation))
    
    0 讨论(0)
提交回复
热议问题