Skip to content
Permalink
Browse files

small bugfix regarding invalidoperationexception

  • Loading branch information...
DXSdata committed Dec 16, 2017
1 parent 15162e1 commit f77e182ff89561ef5d744f130bab4b8b4fc38294
Showing with 3 additions and 3 deletions.
  1. +1 −1 nBayes/MemoryIndex.cs
  2. +2 −2 nBayes/nBayes.csproj
@@ -14,7 +14,7 @@ public override int EntryCount
{
get
{
return table.Values.Sum();
return table.Values.ToList().Sum(); //ToList() to prevent "invalidoperationexception / collection modified"
}
}

@@ -8,7 +8,7 @@
<StartupObject />

<PackageId>nBayes.DXSdata</PackageId>
<PackageVersion>3.0.1</PackageVersion>
<PackageVersion>3.0.2</PackageVersion>
<Authors>DXSdata</Authors>
<Description>Fork of joelmartinez/nBayes, ported for usage with .NET Core / .NET Standard</Description>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
@@ -19,7 +19,7 @@ Changed framework for the sample project back from netstandard to netcoreapp, ot
<PackageTags>Bayes nBayes classifier .NET Core Standard DXSdata</PackageTags>
<PackageProjectUrl>http://www.dxsdata.com/2017/07/bayes-classifier-library-for-net-core/</PackageProjectUrl>
<Title>nBayes for .NET Core</Title>
<Version>3.0.1</Version>
<Version>3.0.2</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageIconUrl></PackageIconUrl>
<RepositoryUrl>https://github.com/DXSdata/nBayes</RepositoryUrl>

0 comments on commit f77e182

Please sign in to comment.
You can’t perform that action at this time.