开发者

Quick test code option in VS2010

开发者 https://www.devze.com 2023-02-17 10:32 出处:网络
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?

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

精彩评论

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