change to csharp 7.3
This commit is contained in:
@@ -29,19 +29,19 @@ namespace TMI_practicum
|
||||
Stopwatch stopwatch = new Stopwatch();
|
||||
stopwatch.Start();
|
||||
|
||||
switch (parsed.Item1)
|
||||
switch (parsed.Algorithm)
|
||||
{
|
||||
case 1:
|
||||
solved = SimpleAlgorithm.Solve(parsed.Item3);
|
||||
solved = SimpleAlgorithm.Solve(parsed.Circles);
|
||||
break;
|
||||
case 2:
|
||||
solved = SweepLineAlgorithm.Solve(parsed.Item3);
|
||||
solved = SweepLineAlgorithm.Solve(parsed.Circles);
|
||||
break;
|
||||
case 3:
|
||||
solved = SweepLineEffAlgorithm.Solve(parsed.Item3);
|
||||
solved = SweepLineEffAlgorithm.Solve(parsed.Circles);
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentException("Algorithm with id: " + parsed.Item1 + " is not defined!");
|
||||
throw new ArgumentException("Algorithm with id: " + parsed.Algorithm + " is not defined!");
|
||||
}
|
||||
|
||||
stopwatch.Stop();
|
||||
@@ -49,7 +49,7 @@ namespace TMI_practicum
|
||||
}
|
||||
|
||||
|
||||
private static Tuple<byte, int, IList<Circle>> ParseFile(string path)
|
||||
private static (byte Algorithm, int NbCircles, IList<Circle> Circles) ParseFile(string path)
|
||||
{
|
||||
|
||||
byte algoritm = 0;
|
||||
@@ -79,7 +79,7 @@ namespace TMI_practicum
|
||||
}
|
||||
}
|
||||
|
||||
return new Tuple<byte, int, IList<Circle>>(algoritm, nbCircles, circles);
|
||||
return (algoritm, nbCircles, circles);
|
||||
}
|
||||
|
||||
private const string OutputFile = "output.txt";
|
||||
|
Reference in New Issue
Block a user