& and && in C#

Below is a sample soucrecode demonstrating the usage of & and && operator in c#.

using System;

namespace AbundantCode

{

internal class Program

{

//& and && in C#

private static void Main(string[] args)

{

bool Input1 = true, input2 = false;

Console.WriteLine("Result of & Operator is {0}", Input1 & input2);

Console.WriteLine("Result of && Operator is {0}", Input1 && input2);

Console.ReadKey();

}

}

}