Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 23, 2022 12:23
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/8eb4ee838b6d3d0020310d2666b2f3ce to your computer and use it in GitHub Desktop.
Save lgolubyev/8eb4ee838b6d3d0020310d2666b2f3ce to your computer and use it in GitHub Desktop.
public List<int> GetValuesGreaterThan100(List<int> masterCollection)
{
List<int> tempResult = new List<int>();
foreach (var value in masterCollection)
{
if (value > 100)
tempResult.Add(value);
}
return tempResult;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment