Having the following simple class:
class Animal
{
public string Type => "Animal";
}
This does not compiles for the arrow operator saying ; expected. I was trying to do something like:
class Animal
{
public string Type { get { return "Animal"; } }
}
Is it because I am using Visual Studio 2012? Is it possible that in this case make the first version of code compile, without installing another version of VS?