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";
|
||||
|
@@ -11,7 +11,7 @@
|
||||
<AssemblyName>TMI_practicum</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<LangVersion>6</LangVersion>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
@@ -41,6 +41,10 @@
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51">
|
||||
<HintPath>..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@@ -1,4 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="MedallionPriorityQueue" version="1.1.0" targetFramework="net461" />
|
||||
<package id="System.ValueTuple" version="4.5.0" targetFramework="net461" />
|
||||
</packages>
|
Reference in New Issue
Block a user