using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { A a = new A(); bool ret = a.returnValue(true, true); Console.WriteLine(ret); Console.ReadLine(); } } class A { public bool returnValue(bool a, bool b) { if (a && b) return false; if (a) if (b) return true; return false; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)