I have an overload method - the first implementation always returns a single object, the second implementation always returns an enumeration.
I\'d like to make the m
Use only one method and have it detect the IEnumerable
case dynamically rather than attempting the impossible via generic constraints. It would be "code smell" to have to deal with two different cache methods depending on if the object to store/retrieve is something enumerable or not. Also, just because it implements IEnumerable
does not mean it is necessarily a collection.