1 instantiation of MemoizedFunction
Shared (1)
Memoization\Memoize.cs (1)
42
=> new
MemoizedFunction
<TParameter, TResult>(f).Function;
11 references to MemoizedFunction
Shared (4)
Memoization\MemoizedFunction.cs (4)
39
internal readonly struct Arg : IEquatable<
MemoizedFunction
<TParameter, TResult>.Arg>
51
public override bool Equals(object? obj) => obj is
MemoizedFunction
<TParameter, TResult>.Arg arg && Equals(arg);
53
public bool Equals(
MemoizedFunction
<TParameter, TResult>.Arg other) => EqualityComparer<TParameter>.Default.Equals(Arg1, other.Arg1);
63
/// Initializes a new instance of the <see cref="
MemoizedFunction
{TParameter1, TResult}"/> class.
Shared.Tests (7)
Memoization\MemoizeTests.cs (7)
120
var a = new
MemoizedFunction
<int, int>.Arg(0);
131
var a = new
MemoizedFunction
<int, int>.Arg(0);
132
var b = new
MemoizedFunction
<int, int>.Arg(0);
146
var a = new
MemoizedFunction
<int, int>.Arg(1);
147
var b = new
MemoizedFunction
<int, int>.Arg(1);
148
var c = new
MemoizedFunction
<int, int>.Arg(1);
165
static
MemoizedFunction
<int, int>.Arg Args(int x) => new(x);