Syntatic Sugar
C# provides several ways to code more efficiently, called syntatic sugar.
Before:
public MapLocation Location
{
get
{
return _path.getLocationAt(_pathStep);
}
}
After:
public MapLocation Location => _path.getLocationAt(_pathStep);