-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathICreatorFactory.cs
More file actions
124 lines (109 loc) · 7.38 KB
/
ICreatorFactory.cs
File metadata and controls
124 lines (109 loc) · 7.38 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
using System;
namespace Nuclear.Creation {
/// <summary>
/// Defines a factory for creator instances.
/// </summary>
public interface ICreatorFactory {
#region methods
/// <summary>
/// Creates a new instance if <see cref="ICreator{TOut}"/>.
/// </summary>
/// <typeparam name="TOut"></typeparam>
/// <param name="func"></param>
/// <returns></returns>
ICreator<TOut> Create<TOut>(Func<TOut> func);
/// <summary>
/// Creates a new instance if <see cref="ICreator{TOut, TIn1}"/>.
/// </summary>
/// <typeparam name="TOut">The type that will be created.</typeparam>
/// <typeparam name="TIn1">The type of the 1st input parameter.</typeparam>
/// <param name="func">The function that is invoked for internal creation.</param>
/// <returns>The new creator instance.</returns>
ICreator<TOut, TIn1> Create<TOut, TIn1>(Func<TIn1, TOut> func);
/// <summary>
/// Creates a new instance if <see cref="ICreator{TOut, TIn1, TIn2}"/>.
/// </summary>
/// <typeparam name="TOut">The type that will be created.</typeparam>
/// <typeparam name="TIn1">The type of the 1st input parameter.</typeparam>
/// <typeparam name="TIn2">The type of the 2nd input parameter.</typeparam>
/// <param name="func">The function that is invoked for internal creation.</param>
/// <returns>The new creator instance.</returns>
ICreator<TOut, TIn1, TIn2> Create<TOut, TIn1, TIn2>(Func<TIn1, TIn2, TOut> func);
/// <summary>
/// Creates a new instance if <see cref="ICreator{TOut, TIn1, TIn2, TIn3}"/>.
/// </summary>
/// <typeparam name="TOut">The type that will be created.</typeparam>
/// <typeparam name="TIn1">The type of the 1st input parameter.</typeparam>
/// <typeparam name="TIn2">The type of the 2nd input parameter.</typeparam>
/// <typeparam name="TIn3">The type of the 3rd input parameter.</typeparam>
/// <param name="func">The function that is invoked for internal creation.</param>
/// <returns>The new creator instance.</returns>
ICreator<TOut, TIn1, TIn2, TIn3> Create<TOut, TIn1, TIn2, TIn3>(Func<TIn1, TIn2, TIn3, TOut> func);
/// <summary>
/// Creates a new instance if <see cref="ICreator{TOut, TIn1, TIn2, TIn3, TIn4}"/>.
/// </summary>
/// <typeparam name="TOut">The type that will be created.</typeparam>
/// <typeparam name="TIn1">The type of the 1st input parameter.</typeparam>
/// <typeparam name="TIn2">The type of the 2nd input parameter.</typeparam>
/// <typeparam name="TIn3">The type of the 3rd input parameter.</typeparam>
/// <typeparam name="TIn4">The type of the 4th input parameter.</typeparam>
/// <param name="func">The function that is invoked for internal creation.</param>
/// <returns>The new creator instance.</returns>
ICreator<TOut, TIn1, TIn2, TIn3, TIn4> Create<TOut, TIn1, TIn2, TIn3, TIn4>(Func<TIn1, TIn2, TIn3, TIn4, TOut> func);
/// <summary>
/// Creates a new instance if <see cref="ICreator{TOut, TIn1, TIn2, TIn3, TIn4, TIn5}"/>.
/// </summary>
/// <typeparam name="TOut">The type that will be created.</typeparam>
/// <typeparam name="TIn1">The type of the 1st input parameter.</typeparam>
/// <typeparam name="TIn2">The type of the 2nd input parameter.</typeparam>
/// <typeparam name="TIn3">The type of the 3rd input parameter.</typeparam>
/// <typeparam name="TIn4">The type of the 4th input parameter.</typeparam>
/// <typeparam name="TIn5">The type of the 5th input parameter.</typeparam>
/// <param name="func">The function that is invoked for internal creation.</param>
/// <returns>The new creator instance.</returns>
ICreator<TOut, TIn1, TIn2, TIn3, TIn4, TIn5> Create<TOut, TIn1, TIn2, TIn3, TIn4, TIn5>(Func<TIn1, TIn2, TIn3, TIn4, TIn5, TOut> func);
/// <summary>
/// Creates a new instance if <see cref="ICreator{TOut, TIn1, TIn2, TIn3, TIn4, TIn5, TIn6}"/>.
/// </summary>
/// <typeparam name="TOut">The type that will be created.</typeparam>
/// <typeparam name="TIn1">The type of the 1st input parameter.</typeparam>
/// <typeparam name="TIn2">The type of the 2nd input parameter.</typeparam>
/// <typeparam name="TIn3">The type of the 3rd input parameter.</typeparam>
/// <typeparam name="TIn4">The type of the 4th input parameter.</typeparam>
/// <typeparam name="TIn5">The type of the 5th input parameter.</typeparam>
/// <typeparam name="TIn6">The type of the 6th input parameter.</typeparam>
/// <param name="func">The function that is invoked for internal creation.</param>
/// <returns>The new creator instance.</returns>
ICreator<TOut, TIn1, TIn2, TIn3, TIn4, TIn5, TIn6> Create<TOut, TIn1, TIn2, TIn3, TIn4, TIn5, TIn6>(Func<TIn1, TIn2, TIn3, TIn4, TIn5, TIn6, TOut> func);
/// <summary>
/// Creates a new instance if <see cref="ICreator{TOut, TIn1, TIn2, TIn3, TIn4, TIn5, TIn6, TIn7}"/>.
/// </summary>
/// <typeparam name="TOut">The type that will be created.</typeparam>
/// <typeparam name="TIn1">The type of the 1st input parameter.</typeparam>
/// <typeparam name="TIn2">The type of the 2nd input parameter.</typeparam>
/// <typeparam name="TIn3">The type of the 3rd input parameter.</typeparam>
/// <typeparam name="TIn4">The type of the 4th input parameter.</typeparam>
/// <typeparam name="TIn5">The type of the 5th input parameter.</typeparam>
/// <typeparam name="TIn6">The type of the 6th input parameter.</typeparam>
/// <typeparam name="TIn7">The type of the 7th input parameter.</typeparam>
/// <param name="func">The function that is invoked for internal creation.</param>
/// <returns>The new creator instance.</returns>
ICreator<TOut, TIn1, TIn2, TIn3, TIn4, TIn5, TIn6, TIn7> Create<TOut, TIn1, TIn2, TIn3, TIn4, TIn5, TIn6, TIn7>(Func<TIn1, TIn2, TIn3, TIn4, TIn5, TIn6, TIn7, TOut> func);
/// <summary>
/// Creates a new instance if <see cref="ICreator{TOut, TIn1, TIn2, TIn3, TIn4, TIn5, TIn6, TIn7, TIn8}"/>.
/// </summary>
/// <typeparam name="TOut">The type that will be created.</typeparam>
/// <typeparam name="TIn1">The type of the 1st input parameter.</typeparam>
/// <typeparam name="TIn2">The type of the 2nd input parameter.</typeparam>
/// <typeparam name="TIn3">The type of the 3rd input parameter.</typeparam>
/// <typeparam name="TIn4">The type of the 4th input parameter.</typeparam>
/// <typeparam name="TIn5">The type of the 5th input parameter.</typeparam>
/// <typeparam name="TIn6">The type of the 6th input parameter.</typeparam>
/// <typeparam name="TIn7">The type of the 7th input parameter.</typeparam>
/// <typeparam name="TIn8">The type of the 8th input parameter.</typeparam>
/// <param name="func">The function that is invoked for internal creation.</param>
/// <returns>The new creator instance.</returns>
ICreator<TOut, TIn1, TIn2, TIn3, TIn4, TIn5, TIn6, TIn7, TIn8> Create<TOut, TIn1, TIn2, TIn3, TIn4, TIn5, TIn6, TIn7, TIn8>(Func<TIn1, TIn2, TIn3, TIn4, TIn5, TIn6, TIn7, TIn8, TOut> func);
#endregion
}
}