.Ner5.0 - "record" class.sample console project.

 


using System;


namespace ConsoleApp1

{

    class Program

    {

        static void Main(string[] args)

        {

 

            RecPerson p1 = new RecPerson("1001", "aydın türker", "admin");

         //p1.NameSurName = "initial values can not change";    

        Console.Write(p1.NameSurName);


            Console.ReadKey();

        }

    }


    public record RecPerson(string personCode,string NameSurName

        ,string GroupType);


}


Yorumlar