18 using System.Runtime.CompilerServices;
30 private Func<int> _weightFunc;
35 public int Weight {
get;
private set; }
40 public Func<int, bool>
Work {
get; }
48 public WorkItem(Func<int, bool> work, Func<int> weightFunc)
51 _weightFunc = weightFunc;
57 [MethodImpl(MethodImplOptions.AggressiveInlining)]
69 if (ReferenceEquals(obj, other))
74 if (ReferenceEquals(obj,
null))
78 if (ReferenceEquals(
null, other))