KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Does C# offer some nice method to cast a single entity of type T to 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.
Tags (comma-separated)
Save Edits
Cancel