Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 23, 2022 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/67f8c7c1f3afa581341987904c752f39 to your computer and use it in GitHub Desktop.
Save lgolubyev/67f8c7c1f3afa581341987904c752f39 to your computer and use it in GitHub Desktop.
public IEnumerable<int> GetValuesGreaterThan100(List<int> masterCollection)
{
foreach (var value in masterCollection)
{
if (value > 100)
yield return value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment