1
This commit is contained in:
@@ -205,11 +205,11 @@ namespace BITKit
|
||||
}
|
||||
public static IEnumerable<T> TrySelectFirst<T>(this IEnumerable<T> self, Action<T> action)
|
||||
{
|
||||
if (self.Count() > 0)
|
||||
if (self.Any())
|
||||
{
|
||||
action.Invoke(self.First());
|
||||
}
|
||||
return self;
|
||||
return self;
|
||||
}
|
||||
public static bool TryGetAny<T>(this IEnumerable<T> self, Func<T, bool> factory, out T any)
|
||||
{
|
||||
|
Reference in New Issue
Block a user