Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IEnumerable query = ...;
- MyEntityType[] array = query.Cast<MyEntityType>().ToArray();
- public static void T[] PerformQuery<T>()
- {
- IEnumerable query = ...;
- T[] array = query.Cast<T>().ToArray();
- return array;
- }
- using System.Linq;
- IEnumerable<object> query = ...;
- object[] bob = query.ToArray();
Add Comment
Please, Sign In to add comment