代码之家  ›  专栏  ›  技术社区  ›  Chris Hayes

从静态值自动建议方法参数值

  •  0
  • Chris Hayes  · 技术社区  · 6 年前

    我相信我看到了一个方法调用,它从静态资源中建议值。

    void DoSomething(string value) { ... }
    //when typing call
    DoSomething(x
    // visual studio opens suggested values from static resource
    // DoSomethingValues.AlwaysDo
    // DoSomethingValues.AlmostAlwaysDo
    // DoSomethingValues.BecauseISaidSo
    // .. etc
    

    这可能吗?

    0 回复  |  直到 6 年前