Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace TheMayneExtensions
- {
- public static class TheMayneExtensions
- {
- public static bool IfThereAreAny<T> (this IEnumerable<T> enumerable)
- {
- return enumerable.Any ();
- }
- public static bool IfThereIsOne (this object obj)
- {
- return obj != null;
- }
- }
- }
Add Comment
Please, Sign In to add comment