vendredi 18 juin 2021

Access a list using reflection?

   class House {
      public int Id { get; set; }
      public List<Room> Rooms { get; set; }
}

class Room {
      public int Id { get; set; }
      public double Rent { get; set; }
}

I have an object of House. How can I Read the list of Rooms using Reflection?





Aucun commentaire:

Enregistrer un commentaire