Hy, I'm stuck a bit. I'm trying to reach List's fields in other class. Here is my code example:
Loader class:
public List<Contact> LoadLicenses()
    {
        var listOfClients = new List<Contact>();     
        using (var connection = new SqlConnection())
        {
            connection.ConnectionString =
                ConfigurationManager.ConnectionStrings["ContactManagerContext"].ConnectionString.ToString();
            connection.Open();
            string sql = "SELECT * FROM [dbo].[Contacts]";
            using (var command = new SqlCommand(sql, connection))
            {
                using (var reader = command.ExecuteReader())
                {
                    while (reader.Read())
                    {
                        var licenses = new Contact();
                        licenses.ContactId = Convert.ToInt32(reader["ContactId"]);
                        licenses.Name = reader["Name"].ToString();
                        licenses.Address = Convert.ToInt32(reader["Address"]);
                        licenses.Email = reader["Email"].ToString();
                            listOfClients.Add(licenses);
                    }       
                }       
            }
        }
        return listOfClients;
    }
ClientDuration class:
public List<Contact> DurationLeft(/*DateTime _date*/)
    {
        Loader loader = new Loader();
        List<Contact> clientContacts = new List<Contact>();
         return clientContacts;
    }
In ClientDuration class I would like to do something like to reach fields (Email, Address,...) from List witch was declared in Loader class. I call LoadLicenses in DurationLeft method and then assign it to new List with same type as it was in Loader class. But then I can't reach fields.
How to do it? Please help! 
 
     
     
    