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.
精彩评论