Skip to the content.

< Back


Point

Namespace: MyClassLib

A record struct representing a 2D point.

public readonly record struct Point

Inheritance ObjectValueTypePoint
Implements IEquatable<Point>
Attributes IsReadOnlyAttribute

Properties

X

The X coordinate.

public int X { get; init; }

Property Value

Int32

Y

The Y coordinate.

public int Y { get; init; }

Property Value

Int32

Constructors

Point(Int32, Int32)

A record struct representing a 2D point.

public Point(int X, int Y)

Parameters

X Int32
The X coordinate.

Y Int32
The Y coordinate.


< Back