I have the following class:
public abstract class BaseGridViewModel
{
protected BaseGridViewModel()
{
Timer = new List<long>();
}
public List<long> Timer { get; set; }
}
To update the timer I have:
vm.Timer.Add(sw.ElapsedMilliseconds);
I am not so familiar with lists. Is it possible for me to have a list that contains both a long and a string so that I could do the following:
vm.Timer.Add(sw.ElapsedMilliseconds, "After event 1");
vm.Timer.Add(sw.ElapsedMilliseconds, "After event 2");