static bool Method1()
{
Console.WriteLine("in Method1");
return false;
}
static bool Method2()
{
Console.WriteLine ("in Method2");
return true;
}
static void Main(string[] args)
{
if (Method1() & Method2())
{
Console.WriteLine("inside if";);
}
}
Login in to like
Login in to comment