Example #1
0
        public string GetGebruikerNaam(GebruikerBase gebruiker)
        {
            switch (gebruiker)
            {
            case SysteemGebruiker sg:
                throw new NotSupportedException();

            case Gebruiker g:
                return(g.Naam);

            default:
                throw new NotImplementedException();
            }
        }
Example #2
0
 /// <summary>
 /// Refactorslag 1
 /// </summary>
 /// <param name="gebruiker"></param>
 /// <returns></returns>
 public string GetGebruikerNaam2(GebruikerBase gebruiker)
 {
     return(gebruiker.GetName());
 }