Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

record keyword c#

//a record is like a simple way to declare a class

public record Person(string name,int age);

Person p1=new person("John",21);
Person p2=new person("Jane",24);
 
PREVIOUS NEXT
Tagged: #record #keyword
ADD COMMENT
Topic
Name
1+1 =