Skip to content

Commit

Permalink
Util code
Browse files Browse the repository at this point in the history
  • Loading branch information
agm-114 committed Nov 1, 2024
1 parent 41fe888 commit 9604902
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions AGMLIB/Common/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,9 @@ public static void Desize<T>(this List<T> list, int size)
}

}

public static IEnumerable<TSource> WhereNotNull<TSource>(this IEnumerable<TSource> source)
{
return source.Where(item => item != null);
}
}

0 comments on commit 9604902

Please sign in to comment.