Skip to content

Commit

Permalink
Disable nullable values for the project
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludwig-Work committed Apr 25, 2023
1 parent d56e1a9 commit 0f85350
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion LazyMathInstructor/LazyMathInstructor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Nullable>disable</Nullable>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>embedded</DebugType>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>embedded</DebugType>
</PropertyGroup>

</Project>
4 changes: 2 additions & 2 deletions LazyMathInstructor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public override int GetHashCode()
/// the <see cref="VariableCombination"/>s are considered to be equal.
/// This is needed to use and compare them, e.g. as a key in Dictionaries.
/// </summary>
public override bool Equals(object? obj)
public override bool Equals(object obj)
{
return obj is VariableCombination other
&& Exponents.Count == other.Exponents.Count
Expand Down Expand Up @@ -302,7 +302,7 @@ public override int GetHashCode()
/// the <see cref="Term"/>s are considered to be equal.
/// This is needed to use and compare them (Term a is equivalent to Term b iff a.Equals(b)).
/// </summary>
public override bool Equals(object? obj)
public override bool Equals(object obj)
{
return obj is Term other
&& Coefficients.Count == other.Coefficients.Count
Expand Down

0 comments on commit 0f85350

Please sign in to comment.