Guest User

Untitled

a guest
Nov 25th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. public static IEnumerable<TResult> MyOfType<TResult>(this IEnumerable that )
  2. {
  3. foreach(var item in that)
  4. if(item is TResult)
  5. yield return (TResult)item;
  6. }
Add Comment
Please, Sign In to add comment