Author : MD TAREQ HASSAN | Updated : 2021/03/22

Struct in CSharp

Syntax

public struct Coords
{
    public int x, y;

    public Coords(int p1, int p2)
    {
        x = p1;
        y = p2;
    }
}