I'm interested in making an .ini file parser and I want it to have an internal list that can hold it's individual entries. The catch is I want to make one list to hold all the values. That means strings, boolean values and int types.
I have a class to hold key-value pairs that is a template.
public class KVPair<T>
{
private string key;
private T value;
...
}
I'm interested to know if there's any way to make a list something like
List<KVPair> something;
without having to specify a certain type for the inner object, or a work-around.