Does C# offer some nice method to cast a single entity of type T to IEnumerable<T>?
T
IEnumerable<T>
The only way I can think of is something like:
T entity = new T(); IEnumerable<T> = new List { entity }.AsEnumerable();
And I guess there should be a better way.