How can I create a singleton IEnumerable?

后端 未结 3 1307
天命终不由人
天命终不由人 2021-01-17 11:05

Does C# offer some nice method to cast a single entity of type T to IEnumerable?

The only way I can think of is something like:

3条回答
提交回复
热议问题