You can use delegates in C# for that.
delegate List<int> SortAlgorithm(List<int> values);
List<int> QuickSort(List<int> values) =>
values; // Do QuickSort
List<int> MergeSort(List<int> values) =>
values; // Do QuickSort
void DoSomething(SortAlgorithm sort, List<int> values)
{
var sorted = sort(values);
}
public void Main()
{
var values = new List<int> { 9, 1, 5, 7 };
DoSomething(QuickSort, values);
}