Get Type of 'var' with Roslyn?

前端 未结 2 548
渐次进展
渐次进展 2021-02-02 13:04

I\'ve got a .cs file named \'test.cs\' which essentially looks like:

namespace test
{
    public class TestClass
    {
        public void Hello()
        {
             


        
2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 13:35

    See the unit test called TestGetDeclaredSymbolFromLocalDeclarator in the Roslyn source tree.

提交回复
热议问题