Writing latest C# in Unity

Unity is one of the most popular game engine. However, one of the most annoying thing is the compiler does not support the latest C#. Although we cannot use the all the latest feature in Unity, some of them does not need latest CLR. You can also write in latest syntax if you want.

Instead of writing this.

public int Size
    get { return _list.Count; }

You can now writing this.

public int Size => _list.Count;

Continue reading