After building and testing my solution on Visual Studio 2017 (target framework .NET 4.5, vs + resharper) I run it in production environment with Visual Studio 2015 (same target framework).
In this case I receive syntax error while trying to build it.
For example:
public double Frequency
{
get => _frequency;
set
{
if (value > 0)
_frequency = value;
}
}
In VS 2015 I get:
"{ or ; expected"
Why does this happen?