class Point {
public int X { set; get; }
public int Y { set; get; }
}
string IsOrigin(Point point) =>
point is { X: 0, Y: 0 } ? "T" : "F";
var point = new Point { X = 0, Y = 0 };
var result = IsOrigin(point);
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
Cool
Nice one. I believe you utilized positional pattern matching?