Skip to content

Commit

Permalink
Merge pull request #86 from DHancock/current
Browse files Browse the repository at this point in the history
Current
  • Loading branch information
DHancock authored Jan 9, 2021
2 parents 60ca1b2 + 6f41536 commit 8f0d4f0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
12 changes: 11 additions & 1 deletion SudokuSolver/Models/PuzzleModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ public bool Equals(PuzzleModel? other)
if (other is null)
return false;

// Cells is a fixed size read only list
// no need to check lengths, Cells is a fixed size list
for (int index = 0; index < Cells.Count; index++)
{
if (!Cells[index].Equals(other.Cells[index]))
Expand All @@ -813,5 +813,15 @@ public bool Equals(PuzzleModel? other)

return true;
}

public override bool Equals(object? obj)
{
return Equals(obj as PuzzleModel);
}

public override int GetHashCode()
{
throw new NotImplementedException();
}
}
}
8 changes: 4 additions & 4 deletions SudokuSolver/SudokuSolver.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<Version>1.1.0</Version>
<Version>1.1.1</Version>
<Authors>David Hancock</Authors>
<Company>[email protected]</Company>
<Copyright>David Hancock 2020</Copyright>
<Copyright>David Hancock 2021</Copyright>
<PackageId>SudokuSolver</PackageId>
<RepositoryUrl>https://github.com/DHancock/SudokuSolver</RepositoryUrl>
<RepositoryType></RepositoryType>
Expand All @@ -17,8 +17,8 @@
<AssemblyName>SudokuSolver</AssemblyName>
<RootNamespace>Sudoku</RootNamespace>
<ApplicationIcon>app.ico</ApplicationIcon>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<FileVersion>1.1.0.0</FileVersion>
<AssemblyVersion>1.1.1.0</AssemblyVersion>
<FileVersion>1.1.1.0</FileVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<ApplicationManifest>app.manifest</ApplicationManifest>
Expand Down
2 changes: 1 addition & 1 deletion SudokuSolver/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<assemblyIdentity version="1.0.0.0" name="ACME.Inc.SudokuSolver"/>
<assemblyIdentity version="1.1.1.0" name="ACME.Inc.SudokuSolver"/>

<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
Expand Down

0 comments on commit 8f0d4f0

Please sign in to comment.