-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathIFunc.cs
62 lines (51 loc) · 1.87 KB
/
IFunc.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
namespace System.Delegates
{
public interface IFunc<out TResult>
{
TResult Invoke();
}
public interface IFunc<in TClosure, out TResult>
{
TResult Invoke(TClosure closure);
}
public interface IFunc<in TClosure, in T, out TResult> : IFunc<TClosure, TResult>
{
void SetArguments(T arg);
}
public interface IFunc<in TClosure, in T1, in T2, out TResult> : IFunc<TClosure, TResult>
{
void SetArguments(T1 arg1, T2 arg2);
}
public interface IFunc<in TClosure, in T1, in T2, in T3, out TResult> : IFunc<TClosure, TResult>
{
void SetArguments(T1 arg1, T2 arg2, T3 arg3);
}
public interface IFunc<in TClosure, in T1, in T2, in T3, in T4, out TResult> : IFunc<TClosure, TResult>
{
void SetArguments(T1 arg1, T2 arg2, T3 arg3, T4 arg4);
}
public interface IFunc<in TClosure, in T1, in T2, in T3, in T4, in T5, out TResult> : IFunc<TClosure, TResult>
{
void SetArguments(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5);
}
public interface IFuncArgIn<in TClosure, T, out TResult> : IFunc<TClosure, TResult>
{
void SetArguments(in T arg);
}
public interface IFuncArgIn<in TClosure, T1, T2, out TResult> : IFunc<TClosure, TResult>
{
void SetArguments(in T1 arg1, in T2 arg2);
}
public interface IFuncArgIn<in TClosure, T1, T2, T3, out TResult> : IFunc<TClosure, TResult>
{
void SetArguments(in T1 arg1, in T2 arg2, in T3 arg3);
}
public interface IFuncArgIn<in TClosure, T1, T2, T3, T4, out TResult> : IFunc<TClosure, TResult>
{
void SetArguments(in T1 arg1, in T2 arg2, in T3 arg3, in T4 arg4);
}
public interface IFuncArgIn<in TClosure, T1, T2, T3, T4, T5, out TResult> : IFunc<TClosure, TResult>
{
void SetArguments(in T1 arg1, in T2 arg2, in T3 arg3, in T4 arg4, in T5 arg5);
}
}