Given a generic attribute class:
public class Attribute<T>
{
string Name { get; set; }
T Value { get; set; }
}
Is there a way to have an object that contains an enumerable containing various types of that generic (for example int, string, datetime).
public class AttributableObject
{
IEnumerable<???> attributes { get; set;}
}
Is there anyway to do this that won't run into variance problems?