Guest User

Untitled

a guest
Jul 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. namespace TheMayneExtensions
  6. {
  7. public static class TheMayneExtensions
  8. {
  9. public static bool IfThereAreAny<T> (this IEnumerable<T> enumerable)
  10. {
  11. return enumerable.Any ();
  12. }
  13.  
  14. public static bool IfThereIsOne (this object obj)
  15. {
  16. return obj != null;
  17. }
  18. }
  19. }
Add Comment
Please, Sign In to add comment