开发者

Quick test code option in VS2010

Is it possible to execute code quick test in VS2010?

For example I would like to test code below just selecting it in code editor and execute it by passing variables?

 public static int GetInt(object value)
    {
        int result;
        Int32.TryParse(GetString(value), out result开发者_Python百科);
        return result;
    }


Use this MSDN article as a starting point on how to use the immediate window. This will allow you to test the entire GetInt method.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜