void List<int> Sort(List<int> input, bool someParam){} var values = new List<int> { 9, 1, 5, 7 }; DoSomething(x => Sort(x, true), values);