Complete the code to declare a simple record named Person.
public [1] Person;The record keyword declares a record type in C#.
Complete the code to declare a record with positional parameters for Name and Age.
public record Person([1] string Name, int Age);Parameters in positional records are usually declared with access modifiers like public.
Fix the error in the record declaration by completing the code.
public record [1](string Name, int Age);The record name must be a valid identifier starting with an uppercase letter by convention.
Complete the code to declare a record with two properties: Name and Age.
public [1] Person { string Name { get; init; } int Age { get; init; } }Records are declared with the record keyword and use braces { } to define the body.
Fill all three blanks to declare a positional record with Name and Age properties.
public [1] Person([2] string Name, int [3]);
The record keyword starts the declaration, parameters need access modifiers, and property names must be valid identifiers.