I have a struct with a parameterless constructor:
struct Coordinate
{
public Coordinate() : this(4, 5, 6)
{
}
public Coordinate(float x, float y, float z)
{
X = x;
Y = y;
Z = z;
}
public float X { get; private set; }
public float Y { get; private set; }
public float Z { get; private set; }
}
I have the languate property in the project properties set to C#, but an still getting a compile error.
Error CS0568 Structs cannot contain explicit parameterless constructors