@@ -15,47 +15,47 @@ public static class TypeHelper
15
15
/// <param name="func">The function to call when the <see cref="IEnumerator"/> is called.</param>
16
16
/// <param name="monoBehaviour">The instance of the <see cref="MonoBehaviour"/> to start the <see cref="Coroutine"/> from.</param>
17
17
/// <returns>A new <see cref="Routine"/> containing the arguments provided.</returns>
18
- public static Routine ToRoutine ( this Func < IEnumerator > func , MonoBehaviour monoBehaviour ) => new Routine ( func , monoBehaviour ) ;
18
+ public static Routine ToRoutine ( this Func < IEnumerator > func , MonoBehaviour monoBehaviour ) => new ( func , monoBehaviour ) ;
19
19
20
20
/// <summary>
21
21
/// Converts arguments to a new <see cref="Routine{T}"/>.
22
22
/// </summary>
23
23
/// <param name="func">The function to call when the <see cref="IEnumerator"/> is called.</param>
24
24
/// <param name="monoBehaviour">The instance of the <see cref="MonoBehaviour"/> to start the <see cref="Coroutine"/> from.</param>
25
25
/// <returns>A new <see cref="Routine{T}"/> containing the arguments provided.</returns>
26
- public static Routine < T > ToRoutine < T > ( this Func < T , IEnumerator > func , MonoBehaviour monoBehaviour ) => new Routine < T > ( func , monoBehaviour ) ;
26
+ public static Routine < T > ToRoutine < T > ( this Func < T , IEnumerator > func , MonoBehaviour monoBehaviour ) => new ( func , monoBehaviour ) ;
27
27
28
28
/// <summary>
29
29
/// Converts arguments to a new <see cref="Routine{T1, T2}"/>.
30
30
/// </summary>
31
31
/// <param name="func">The function to call when the <see cref="IEnumerator"/> is called.</param>
32
32
/// <param name="monoBehaviour">The instance of the <see cref="MonoBehaviour"/> to start the <see cref="Coroutine"/> from.</param>
33
33
/// <returns>A new <see cref="Routine{T1, T2}"/> containing the arguments provided.</returns>
34
- public static Routine < T1 , T2 > ToRoutine < T1 , T2 > ( this Func < T1 , T2 , IEnumerator > func , MonoBehaviour monoBehaviour ) => new Routine < T1 , T2 > ( func , monoBehaviour ) ;
34
+ public static Routine < T1 , T2 > ToRoutine < T1 , T2 > ( this Func < T1 , T2 , IEnumerator > func , MonoBehaviour monoBehaviour ) => new ( func , monoBehaviour ) ;
35
35
36
36
/// <summary>
37
37
/// Converts arguments to a new <see cref="Routine{T1, T2, T3}"/>.
38
38
/// </summary>
39
39
/// <param name="func">The function to call when the <see cref="IEnumerator"/> is called.</param>
40
40
/// <param name="monoBehaviour">The instance of the <see cref="MonoBehaviour"/> to start the <see cref="Coroutine"/> from.</param>
41
41
/// <returns>A new <see cref="Routine{T1, T2, T3}"/> containing the arguments provided.</returns>
42
- public static Routine < T1 , T2 , T3 > ToRoutine < T1 , T2 , T3 > ( this Func < T1 , T2 , T3 , IEnumerator > func , MonoBehaviour monoBehaviour ) => new Routine < T1 , T2 , T3 > ( func , monoBehaviour ) ;
42
+ public static Routine < T1 , T2 , T3 > ToRoutine < T1 , T2 , T3 > ( this Func < T1 , T2 , T3 , IEnumerator > func , MonoBehaviour monoBehaviour ) => new ( func , monoBehaviour ) ;
43
43
44
44
/// <summary>
45
45
/// Converts arguments to a new <see cref="Routine{T1, T2, T3, T4}"/>.
46
46
/// </summary>
47
47
/// <param name="func">The function to call when the <see cref="IEnumerator"/> is called.</param>
48
48
/// <param name="monoBehaviour">The instance of the <see cref="MonoBehaviour"/> to start the <see cref="Coroutine"/> from.</param>
49
49
/// <returns>A new <see cref="Routine{T1, T2, T3, T4}"/> containing the arguments provided.</returns>
50
- public static Routine < T1 , T2 , T3 , T4 > ToRoutine < T1 , T2 , T3 , T4 > ( this Func < T1 , T2 , T3 , T4 , IEnumerator > func , MonoBehaviour monoBehaviour ) => new Routine < T1 , T2 , T3 , T4 > ( func , monoBehaviour ) ;
50
+ public static Routine < T1 , T2 , T3 , T4 > ToRoutine < T1 , T2 , T3 , T4 > ( this Func < T1 , T2 , T3 , T4 , IEnumerator > func , MonoBehaviour monoBehaviour ) => new ( func , monoBehaviour ) ;
51
51
52
52
/// <summary>
53
53
/// Converts arguments to a new <see cref="Tuple{T}"/>.
54
54
/// </summary>
55
55
/// <typeparam name="T">The type of tuple.</typeparam>
56
56
/// <param name="item">The argument to pass into the tuple.</param>
57
57
/// <returns>A new <see cref="Tuple{T}"/> containing <paramref name="item"/>.</returns>
58
- public static Tuple < T > ToTuple < T > ( this T item ) => new Tuple < T > ( item ) ;
58
+ public static Tuple < T > ToTuple < T > ( this T item ) => new ( item ) ;
59
59
60
60
/// <summary>
61
61
/// Converts arguments to a new <see cref="Tuple{T1, T2}"/>.
@@ -65,7 +65,7 @@ public static class TypeHelper
65
65
/// <param name="item1">The first argument to pass into the tuple.</param>
66
66
/// <param name="item2">The second argument to pass into the tuple.</param>
67
67
/// <returns>A new <seealso cref="Tuple{T1, T2}"/> containing <paramref name="item1"/> and <paramref name="item2"/></returns>
68
- public static Tuple < T1 , T2 > ToTuple < T1 , T2 > ( this T1 item1 , T2 item2 ) => new Tuple < T1 , T2 > ( item1 , item2 ) ;
68
+ public static Tuple < T1 , T2 > ToTuple < T1 , T2 > ( this T1 item1 , T2 item2 ) => new ( item1 , item2 ) ;
69
69
70
70
/// <summary>
71
71
/// Converts arguments to a new <see cref="Tuple{T1, T2, T3}"/>.
@@ -77,7 +77,7 @@ public static class TypeHelper
77
77
/// <param name="item2">The second argument to pass into the tuple.</param>
78
78
/// <param name="item3">The third argument to pass into the tuple.</param>
79
79
/// <returns>A new <seealso cref="Tuple{T1, T2, T3}"/> containing <paramref name="item1"/>, <paramref name="item2"/>, and <paramref name="item3"/></returns>
80
- public static Tuple < T1 , T2 , T3 > ToTuple < T1 , T2 , T3 > ( this T1 item1 , T2 item2 , T3 item3 ) => new Tuple < T1 , T2 , T3 > ( item1 , item2 , item3 ) ;
80
+ public static Tuple < T1 , T2 , T3 > ToTuple < T1 , T2 , T3 > ( this T1 item1 , T2 item2 , T3 item3 ) => new ( item1 , item2 , item3 ) ;
81
81
82
82
/// <summary>
83
83
/// Converts arguments to a new <see cref="Tuple{T1, T2, T3, T4}"/>.
@@ -91,7 +91,7 @@ public static class TypeHelper
91
91
/// <param name="item3">The third argument to pass into the tuple.</param>
92
92
/// <param name="item4">The fourth argument to pass into the tuple.</param>
93
93
/// <returns>A new <seealso cref="Tuple{T1, T2, T3, T4}"/> containing <paramref name="item1"/>, <paramref name="item2"/>, <paramref name="item3"/>, and <paramref name="item4"/></returns>
94
- public static Tuple < T1 , T2 , T3 , T4 > ToTuple < T1 , T2 , T3 , T4 > ( this T1 item1 , T2 item2 , T3 item3 , T4 item4 ) => new Tuple < T1 , T2 , T3 , T4 > ( item1 , item2 , item3 , item4 ) ;
94
+ public static Tuple < T1 , T2 , T3 , T4 > ToTuple < T1 , T2 , T3 , T4 > ( this T1 item1 , T2 item2 , T3 item3 , T4 item4 ) => new ( item1 , item2 , item3 , item4 ) ;
95
95
96
96
/// <summary>
97
97
/// Converts argument to a new <see cref="Work"/>
@@ -100,7 +100,7 @@ public static class TypeHelper
100
100
/// <param name="allowSimultaneousActive">Whether it should allow multiple of itself to be running at once.</param>
101
101
/// <param name="maximumThreadsActive">The amount of threads this class, and all of its overloads can run at once.</param>
102
102
/// <returns>A new <see cref="Work"/> consisting of the arguments provided.</returns>
103
- public static Work ToWork ( this Action action , bool allowSimultaneousActive = false , uint maximumThreadsActive = 1 ) => new Work ( action , allowSimultaneousActive , maximumThreadsActive ) ;
103
+ public static Work ToWork ( this Action action , bool allowSimultaneousActive = false , uint maximumThreadsActive = 1 ) => new ( action , allowSimultaneousActive , maximumThreadsActive ) ;
104
104
105
105
/// <summary>
106
106
/// Converts argument to a new <see cref="Work{T}"/>
@@ -109,7 +109,7 @@ public static class TypeHelper
109
109
/// <param name="allowSimultaneousActive">Whether it should allow multiple of itself to be running at once.</param>
110
110
/// <param name="maximumThreadsActive">The amount of threads this class, and all of its overloads can run at once.</param>
111
111
/// <returns>A new <see cref="Work{T}"/> consisting of the arguments provided.</returns>
112
- public static Work < T > ToWork < T > ( this Func < T > func , bool allowSimultaneousActive = false , uint maximumThreadsActive = 1 ) => new Work < T > ( func , allowSimultaneousActive , maximumThreadsActive ) ;
112
+ public static Work < T > ToWork < T > ( this Func < T > func , bool allowSimultaneousActive = false , uint maximumThreadsActive = 1 ) => new ( func , allowSimultaneousActive , maximumThreadsActive ) ;
113
113
114
114
/// <summary>
115
115
/// Converts argument to a new <see cref="Work{T, TResult}"/>
@@ -118,7 +118,7 @@ public static class TypeHelper
118
118
/// <param name="allowSimultaneousActive">Whether it should allow multiple of itself to be running at once.</param>
119
119
/// <param name="maximumThreadsActive">The amount of threads this class, and all of its overloads can run at once.</param>
120
120
/// <returns>A new <see cref="Work{T, TResult}"/> consisting of the arguments provided.</returns>
121
- public static Work < T , TResult > ToWork < T , TResult > ( this Func < T , TResult > func , bool allowSimultaneousActive = false , uint maximumThreadsActive = 1 ) => new Work < T , TResult > ( func , allowSimultaneousActive , maximumThreadsActive ) ;
121
+ public static Work < T , TResult > ToWork < T , TResult > ( this Func < T , TResult > func , bool allowSimultaneousActive = false , uint maximumThreadsActive = 1 ) => new ( func , allowSimultaneousActive , maximumThreadsActive ) ;
122
122
123
123
/// <summary>
124
124
/// Converts argument to a new <see cref="Work{T1, T2, TResult}"/>
@@ -127,7 +127,7 @@ public static class TypeHelper
127
127
/// <param name="allowSimultaneousActive">Whether it should allow multiple of itself to be running at once.</param>
128
128
/// <param name="maximumThreadsActive">The amount of threads this class, and all of its overloads can run at once.</param>
129
129
/// <returns>A new <see cref="Work{T1, T2, TResult}"/> consisting of the arguments provided.</returns>
130
- public static Work < T1 , T2 , TResult > ToWork < T1 , T2 , TResult > ( this Func < T1 , T2 , TResult > func , bool allowSimultaneousActive = false , uint maximumThreadsActive = 1 ) => new Work < T1 , T2 , TResult > ( func , allowSimultaneousActive , maximumThreadsActive ) ;
130
+ public static Work < T1 , T2 , TResult > ToWork < T1 , T2 , TResult > ( this Func < T1 , T2 , TResult > func , bool allowSimultaneousActive = false , uint maximumThreadsActive = 1 ) => new ( func , allowSimultaneousActive , maximumThreadsActive ) ;
131
131
132
132
/// <summary>
133
133
/// Converts argument to a new <see cref="Work{T1, T2, T3, TResult}"/>
@@ -136,7 +136,7 @@ public static class TypeHelper
136
136
/// <param name="allowSimultaneousActive">Whether it should allow multiple of itself to be running at once.</param>
137
137
/// <param name="maximumThreadsActive">The amount of threads this class, and all of its overloads can run at once.</param>
138
138
/// <returns>A new <see cref="Work{T1, T2, T3, TResult}"/> consisting of the arguments provided.</returns>
139
- public static Work < T1 , T2 , T3 , TResult > ToWork < T1 , T2 , T3 , TResult > ( this Func < T1 , T2 , T3 , TResult > func , bool allowSimultaneousActive = false , uint maximumThreadsActive = 1 ) => new Work < T1 , T2 , T3 , TResult > ( func , allowSimultaneousActive , maximumThreadsActive ) ;
139
+ public static Work < T1 , T2 , T3 , TResult > ToWork < T1 , T2 , T3 , TResult > ( this Func < T1 , T2 , T3 , TResult > func , bool allowSimultaneousActive = false , uint maximumThreadsActive = 1 ) => new ( func , allowSimultaneousActive , maximumThreadsActive ) ;
140
140
141
141
/// <summary>
142
142
/// Converts argument to a new <see cref="Work{T1, T2, T3, T4, TResult}"/>
@@ -145,6 +145,6 @@ public static class TypeHelper
145
145
/// <param name="allowSimultaneousActive">Whether it should allow multiple of itself to be running at once.</param>
146
146
/// <param name="maximumThreadsActive">The amount of threads this class, and all of its overloads can run at once.</param>
147
147
/// <returns>A new <see cref="Work{T1, T2, T3, T4, TResult}"/> consisting of the arguments provided.</returns>
148
- public static Work < T1 , T2 , T3 , T4 , TResult > ToWork < T1 , T2 , T3 , T4 , TResult > ( this Func < T1 , T2 , T3 , T4 , TResult > func , bool allowSimultaneousActive = false , uint maximumThreadsActive = 1 ) => new Work < T1 , T2 , T3 , T4 , TResult > ( func , allowSimultaneousActive , maximumThreadsActive ) ;
148
+ public static Work < T1 , T2 , T3 , T4 , TResult > ToWork < T1 , T2 , T3 , T4 , TResult > ( this Func < T1 , T2 , T3 , T4 , TResult > func , bool allowSimultaneousActive = false , uint maximumThreadsActive = 1 ) => new ( func , allowSimultaneousActive , maximumThreadsActive ) ;
149
149
}
150
150
}
0 commit comments