コード例 #1
0
 public void Print()
 {
     Console.ForegroundColor = ConsoleColor.Green;
     Console.WriteLine(naam);
     Console.ResetColor();
     Console.WriteLine($"date of birth: {GeboorteDatum.ToString("dd/MM/yyyy")}");
     Console.WriteLine($"age: {Leeftijd}");
     Console.WriteLine($"date of registration: {InschrijfDatum.ToString("dd/MM/yyyy")}");
     Console.WriteLine($"discount: {RechtOpKorting}");
     Console.WriteLine();
 }
コード例 #2
0
        public virtual string Beschrijf()
        {
            string beschrijf = "";

            beschrijf =
                $"NAAM                 :{Naam}" + "\n"
                + $"GESLACHT              :{Geslacht}" + "\n"
                + $"GEBOORTEDATUM        :{GeboorteDatum.ToString("dd/MM/yyyy")}" + "\n"
                + $"RIJKSREGISTERNUMMER   :{RijksRegisterNummer}" + "\n"
                + $"INDATUMINDIENSTTREDING:{Indiensttreding.ToString("dd/MM/yyyy")}" + "\n"
                + $"FUNCTIE               :{Functie}" + "\n"
                + $"TYPECONTRACT          :{Typecontract}" + "\n"
                + $"IBANNUMMER          :{IbanNummer}" + "\n";
            return(beschrijf);
        }