Skip to content

Commit 92b9854

Browse files
committed
#9 fix Min and Max stubs
1 parent 141085d commit 92b9854

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

LinqGen.Unity/Packages/com.cathei.linqgen/Runtime/Core/Stubs/StubExtensions.Evaluations.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,67 +73,67 @@ public static int Count<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable, IStr
7373
throw new NotImplementedException();
7474
}
7575

76-
public static int Min<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable)
76+
public static T Min<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable)
7777
{
7878
throw new NotImplementedException();
7979
}
8080

81-
public static int Min<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable, IComparer<T> comparer)
81+
public static T Min<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable, IComparer<T> comparer)
8282
{
8383
throw new NotImplementedException();
8484
}
8585

86-
public static int MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable, Func<T, TKey> keySelector)
86+
public static T MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable, Func<T, TKey> keySelector)
8787
{
8888
throw new NotImplementedException();
8989
}
9090

91-
public static int MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
91+
public static T MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
9292
Func<T, TKey> keySelector, IComparer<TKey> comparer)
9393
{
9494
throw new NotImplementedException();
9595
}
9696

97-
public static int MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
97+
public static T MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
9898
IStructFunction<T, TKey> keySelector)
9999
{
100100
throw new NotImplementedException();
101101
}
102102

103-
public static int MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
103+
public static T MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
104104
IStructFunction<T, TKey> keySelector, IComparer<TKey> comparer)
105105
{
106106
throw new NotImplementedException();
107107
}
108108

109-
public static int Max<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable)
109+
public static T Max<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable)
110110
{
111111
throw new NotImplementedException();
112112
}
113113

114-
public static int Max<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable, IComparer<T> comparer)
114+
public static T Max<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable, IComparer<T> comparer)
115115
{
116116
throw new NotImplementedException();
117117
}
118118

119-
public static int MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable, Func<T, TKey> keySelector)
119+
public static T MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable, Func<T, TKey> keySelector)
120120
{
121121
throw new NotImplementedException();
122122
}
123123

124-
public static int MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
124+
public static T MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
125125
Func<T, TKey> keySelector, IComparer<TKey> comparer)
126126
{
127127
throw new NotImplementedException();
128128
}
129129

130-
public static int MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
130+
public static T MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
131131
IStructFunction<T, TKey> keySelector)
132132
{
133133
throw new NotImplementedException();
134134
}
135135

136-
public static int MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
136+
public static T MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
137137
IStructFunction<T, TKey> keySelector, IComparer<TKey> comparer)
138138
{
139139
throw new NotImplementedException();

LinqGen/Core/Stubs/StubExtensions.Evaluations.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,67 +73,67 @@ public static int Count<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable, IStr
7373
throw new NotImplementedException();
7474
}
7575

76-
public static int Min<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable)
76+
public static T Min<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable)
7777
{
7878
throw new NotImplementedException();
7979
}
8080

81-
public static int Min<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable, IComparer<T> comparer)
81+
public static T Min<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable, IComparer<T> comparer)
8282
{
8383
throw new NotImplementedException();
8484
}
8585

86-
public static int MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable, Func<T, TKey> keySelector)
86+
public static T MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable, Func<T, TKey> keySelector)
8787
{
8888
throw new NotImplementedException();
8989
}
9090

91-
public static int MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
91+
public static T MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
9292
Func<T, TKey> keySelector, IComparer<TKey> comparer)
9393
{
9494
throw new NotImplementedException();
9595
}
9696

97-
public static int MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
97+
public static T MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
9898
IStructFunction<T, TKey> keySelector)
9999
{
100100
throw new NotImplementedException();
101101
}
102102

103-
public static int MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
103+
public static T MinBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
104104
IStructFunction<T, TKey> keySelector, IComparer<TKey> comparer)
105105
{
106106
throw new NotImplementedException();
107107
}
108108

109-
public static int Max<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable)
109+
public static T Max<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable)
110110
{
111111
throw new NotImplementedException();
112112
}
113113

114-
public static int Max<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable, IComparer<T> comparer)
114+
public static T Max<T, TUp>(this IStub<IEnumerable<T>, TUp> enumerable, IComparer<T> comparer)
115115
{
116116
throw new NotImplementedException();
117117
}
118118

119-
public static int MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable, Func<T, TKey> keySelector)
119+
public static T MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable, Func<T, TKey> keySelector)
120120
{
121121
throw new NotImplementedException();
122122
}
123123

124-
public static int MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
124+
public static T MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
125125
Func<T, TKey> keySelector, IComparer<TKey> comparer)
126126
{
127127
throw new NotImplementedException();
128128
}
129129

130-
public static int MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
130+
public static T MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
131131
IStructFunction<T, TKey> keySelector)
132132
{
133133
throw new NotImplementedException();
134134
}
135135

136-
public static int MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
136+
public static T MaxBy<T, TUp, TKey>(this IStub<IEnumerable<T>, TUp> enumerable,
137137
IStructFunction<T, TKey> keySelector, IComparer<TKey> comparer)
138138
{
139139
throw new NotImplementedException();

0 commit comments

Comments
 (0)