I Have a class
class ExpiryList
{
protected ConcurrentDictionary <GenericType, DateTime> m_list;
ExpiryList(GenericType obj, DateTime expiryDate)
{
m_list.AddOrUpdate(obj, expiryDate, (x, y) => { return expiryDate; });
}
}
And i am wondering how to implement this? I need a way to create an instance of this class that stores either int, string, String, double etc… into the GenericType variable.
You can make your class generic: