C#] Operator
using System;
using System.Text;
namespace MyPractice
{
class Program
{
static void Main(string[] args)
{
/*
* C# - Operator
* 2019.04.01
* by 4ru4ka
*/
//Shift operator
int i = 2;
i = i << 5;
int j = 3;
j = j << 5;
Console.WriteLine("{0} , {1}", i, j);
// ?? Operator (over C# 3.0)
string str = null;
string s = str ?? "Hello"; // when str is null, put "Hello" in to s.
Console.WriteLine(s);
}
}
}