Complete the code to declare a record struct named Point with two integer properties X and Y.
public [1] Point(int X, int Y);The keyword record struct declares a record struct in C# which is a value type with built-in value equality.
Complete the code to create a new Point record struct instance with X=5 and Y=10.
var p = new Point([1], 10);
When creating a new instance, you provide the values for the parameters. Here, X is 5.
Fix the error in the code to correctly compare two Point record structs for equality.
bool areEqual = p1 [1] p2;Record structs support value equality with the == operator.
Fill both blanks to declare a record struct named Rectangle with properties Width and Height.
public [1] Rectangle(int [2], int Height);
The declaration uses 'record struct' and the first parameter name is 'Width'.
Fill all three blanks to create a new Rectangle instance with Width=15 and Height=25, then check if Width is greater than 10.
var rect = new Rectangle([1], [2]); bool isWide = rect.Width [3] 10;
The Rectangle is created with Width=15 and Height=25. The comparison checks if Width is greater than 10.