static void Main(string[] args)
        {
            Trainee train = new Trainee();
            string  trFN  = train.TraineeName("Alex", "Saltykov");

            train.email  = "*****@*****.**";
            train.gitHub = "https://github.com/SaltykovAlexx?tab=repositories";
            Group gr = new Group("DevOps-159", train);

            Console.WriteLine();
            Console.WriteLine("{0} ({1}) is a student of {2}", trFN, train.email, gr.groupName);
            Console.WriteLine();
            Console.ReadKey();
        }
示例#2
0
 public Group(string g, Trainee tFN)
 {
     groupName  = g;
     this.train = tFN;
 }