Skip to content

Commit 3deccfb

Browse files
author
Oren (electricessence)
committed
Cleanup and ref update.
1 parent cd1a2ce commit 3deccfb

2 files changed

Lines changed: 8 additions & 12 deletions

File tree

Node.Factory.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ public Factory()
1818
() => new Node<T>(this), PrepareForPool, null, ushort.MaxValue);
1919
}
2020

21-
protected override void OnDispose(bool calledExplicitly)
21+
protected override void OnDispose()
2222
{
23-
if (calledExplicitly)
24-
{
25-
DisposeOf(ref _pool);
26-
}
23+
DisposeOf(ref _pool);
2724
}
2825

2926
ConcurrentQueueObjectPool<Node<T>> _pool;
@@ -35,7 +32,7 @@ protected override void OnDispose(bool calledExplicitly)
3532
public Node<T> GetBlankNode()
3633
{
3734
var p = _pool;
38-
AssertIsAlive();
35+
this.AssertIsAlive();
3936

4037
var n = p.Take();
4138
n._recycled = false;

Open.Hierarchy.csproj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
55
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
66
<Authors>electricessence</Authors>
77
<Company>electricessence</Company>
88
<Description>Interfaces and classes helful in managing tree-like data structures.
99

1010
Part of the "Open" set of libraries.</Description>
1111
<Copyright>https://github.com/electricessence/Open.Hierarchy/blob/master/LICENSE</Copyright>
12-
<PackageLicenseUrl>https://github.com/electricessence/Open.Hierarchy/blob/master/LICENSE</PackageLicenseUrl>
12+
<PackageLicenseUrl></PackageLicenseUrl>
1313
<PackageProjectUrl>https://github.com/electricessence/Open.Hierarchy/</PackageProjectUrl>
1414
<RepositoryUrl>https://github.com/electricessence/Open.Hierarchy/</RepositoryUrl>
1515
<RepositoryType>git</RepositoryType>
1616
<PackageTags>dotnet, dotnetcore, cs, tree, node, hierarchy, parent, child, root</PackageTags>
17-
<Version>1.5.1</Version>
17+
<Version>1.6.1</Version>
1818
<PackageReleaseNotes>Improved API. Implemented IList&lt;Node&lt;T&gt;&gt; for all nodes.
1919
Validated mapping optimization.</PackageReleaseNotes>
20+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2021
</PropertyGroup>
2122

2223
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
@@ -34,9 +35,7 @@ Validated mapping optimization.</PackageReleaseNotes>
3435
</ItemGroup>
3536

3637
<ItemGroup>
37-
<PackageReference Include="Open.Disposable" Version="1.2.1" />
38-
<PackageReference Include="Open.Disposable.ObjectPools" Version="2.1.3" />
39-
<PackageReference Include="Open.Numeric" Version="1.2.1" />
38+
<PackageReference Include="Open.Disposable.ObjectPools" Version="2.3.2" />
4039
</ItemGroup>
4140

4241
</Project>

0 commit comments

Comments
 (0)