Skip to content

Commit 7992d91

Browse files
committed
refactor: move extension method to correct place
1 parent 8b7a410 commit 7992d91

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace Backbone.Tooling.Extensions;
2+
3+
public static class IEnumerableExtensions
4+
{
5+
public static bool IsEmpty<T>(this IEnumerable<T> items)
6+
{
7+
return !items.Any();
8+
}
9+
}

BuildingBlocks/src/Tooling/Extensions/StringExtensions.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,4 @@ public static byte[] GetBytes(this string text)
2626
{
2727
return Encoding.UTF8.GetBytes(text);
2828
}
29-
30-
public static bool IsEmpty<T>(this IEnumerable<T> items)
31-
{
32-
return !items.Any();
33-
}
3429
}

0 commit comments

Comments
 (0)