[#26] All: Remove V2 from naming
Rename project, namespaces and class names Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
parent
c406df1a78
commit
766f61a5f7
219 changed files with 219 additions and 974 deletions
26
src/FrostFS.SDK.Client/Pool/WorkList.cs
Normal file
26
src/FrostFS.SDK.Client/Pool/WorkList.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace FrostFS.SDK.Client;
|
||||
|
||||
internal sealed class WorkList
|
||||
{
|
||||
private readonly List<int> elements = [];
|
||||
|
||||
internal int Length
|
||||
{
|
||||
get { return elements.Count; }
|
||||
}
|
||||
|
||||
internal void Add(int element)
|
||||
{
|
||||
elements.Add(element);
|
||||
}
|
||||
|
||||
internal int Remove()
|
||||
{
|
||||
int last = elements.LastOrDefault();
|
||||
elements.RemoveAt(elements.Count - 1);
|
||||
return last;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue