class Program
{
private static bool _ret = true;
static void Main()
{
_ret &= Method();
Console.WriteLine(_ret);
Console.Read();
}
private static bool Method()
{
_ret &= false;
return true;
}
}
私たちが開発しているより大きなアプリケーションでこの問題に遭遇し、それが期待される機能であるかどうか疑問に思いましたか?これは、Visual Studio 2010でC#で記述されています