Dynamically handling lists of objects

 

The following code shows how to create a list of different objects and handle there properties and methods. This example deals with a list of services.

Create your object classes and add them to your list like this;

This is a handy function for getting values of properties;

To call a method from an object in the list;

An example query;

 

 

 

This entry was posted in C# Development. Bookmark the permalink.