mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Support ancient .NET in Core
This commit is contained in:
@@ -7,7 +7,11 @@ namespace SabreTools.Core
|
||||
/// <summary>
|
||||
/// Thread-safe list class
|
||||
/// </summary>
|
||||
#if NET20 || NET35 || NET40
|
||||
public class ConcurrentList<T> : ICollection<T>, IEnumerable<T>, IEnumerable, IList<T>, ICollection, IList
|
||||
#else
|
||||
public class ConcurrentList<T> : ICollection<T>, IEnumerable<T>, IEnumerable, IList<T>, IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection, IList
|
||||
#endif
|
||||
{
|
||||
private List<T> _list = [];
|
||||
private readonly object _lock = new();
|
||||
|
||||
Reference in New Issue
Block a user