In C# 6.0 I can write:
public int Prop => 777;
But I want to use getter and setter.Is there a way to do something kind of the next?
public int Prop { get => propVar; set => propVar = value;}
In C# 6.0 I can write:
public int Prop => 777;
But I want to use getter and setter.Is there a way to do something kind of the next?
public int Prop { get => propVar; set => propVar = value;}