Skip to content

Commit 25c1357

Browse files
committed
Fix server build
1 parent fceab31 commit 25c1357

File tree

4 files changed

+34
-33
lines changed

4 files changed

+34
-33
lines changed

Main/src/CodeJam.Main.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
<Compile Include="Services\IServicePublisher.cs" />
112112
<Compile Include="Services\ServiceContainer.cs" />
113113
<Compile Include="Services\ServiceProviderHelper.cs" />
114+
<Compile Include="Structures\ITupleStruct.cs" />
114115
<Compile Include="TableData\CsvFormat.cs" />
115116
<Compile Include="TableData\DataLine.cs" />
116117
<Compile Include="TableData\FixedWidthFormat.cs" />

Main/src/Structures/ITuple.cs renamed to Main/src/Structures/ITupleStruct.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace CodeJam
66
/// Common interface for all tuples.
77
/// </summary>
88
[PublicAPI]
9-
public interface ITuple
9+
public interface ITupleStruct
1010
{
1111
/// <summary>
1212
/// Tuple rank (count of values).

Main/src/Structures/TupleStruct.generated.cs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public static TupleStruct<T1, T2, T3, T4, T5, T6, T7, T8> Create<T1, T2, T3, T4,
141141
/// <typeparam name="T2">The type of the component 2 of the tuple.</typeparam>
142142
[Serializable]
143143
[PublicAPI]
144-
public struct TupleStruct<T1, T2> : ITuple, IStructuralEquatable, IStructuralComparable, IComparable
144+
public struct TupleStruct<T1, T2> : ITupleStruct, IStructuralEquatable, IStructuralComparable, IComparable
145145
{
146146
/// <summary>
147147
/// The value of the component 1 of the tuple.
@@ -223,10 +223,10 @@ public override string ToString()
223223
return sb.ToString();
224224
}
225225

226-
#region Implementation of ITuple
227-
int ITuple.Rank => 2;
226+
#region Implementation of ITupleStruct
227+
int ITupleStruct.Rank => 2;
228228

229-
object ITuple.this[int index]
229+
object ITupleStruct.this[int index]
230230
{
231231
get
232232
{
@@ -249,7 +249,7 @@ object ITuple.this[int index]
249249
/// <typeparam name="T3">The type of the component 3 of the tuple.</typeparam>
250250
[Serializable]
251251
[PublicAPI]
252-
public struct TupleStruct<T1, T2, T3> : ITuple, IStructuralEquatable, IStructuralComparable, IComparable
252+
public struct TupleStruct<T1, T2, T3> : ITupleStruct, IStructuralEquatable, IStructuralComparable, IComparable
253253
{
254254
/// <summary>
255255
/// The value of the component 1 of the tuple.
@@ -341,10 +341,10 @@ public override string ToString()
341341
return sb.ToString();
342342
}
343343

344-
#region Implementation of ITuple
345-
int ITuple.Rank => 3;
344+
#region Implementation of ITupleStruct
345+
int ITupleStruct.Rank => 3;
346346

347-
object ITuple.this[int index]
347+
object ITupleStruct.this[int index]
348348
{
349349
get
350350
{
@@ -369,7 +369,7 @@ object ITuple.this[int index]
369369
/// <typeparam name="T4">The type of the component 4 of the tuple.</typeparam>
370370
[Serializable]
371371
[PublicAPI]
372-
public struct TupleStruct<T1, T2, T3, T4> : ITuple, IStructuralEquatable, IStructuralComparable, IComparable
372+
public struct TupleStruct<T1, T2, T3, T4> : ITupleStruct, IStructuralEquatable, IStructuralComparable, IComparable
373373
{
374374
/// <summary>
375375
/// The value of the component 1 of the tuple.
@@ -471,10 +471,10 @@ public override string ToString()
471471
return sb.ToString();
472472
}
473473

474-
#region Implementation of ITuple
475-
int ITuple.Rank => 4;
474+
#region Implementation of ITupleStruct
475+
int ITupleStruct.Rank => 4;
476476

477-
object ITuple.this[int index]
477+
object ITupleStruct.this[int index]
478478
{
479479
get
480480
{
@@ -501,7 +501,7 @@ object ITuple.this[int index]
501501
/// <typeparam name="T5">The type of the component 5 of the tuple.</typeparam>
502502
[Serializable]
503503
[PublicAPI]
504-
public struct TupleStruct<T1, T2, T3, T4, T5> : ITuple, IStructuralEquatable, IStructuralComparable, IComparable
504+
public struct TupleStruct<T1, T2, T3, T4, T5> : ITupleStruct, IStructuralEquatable, IStructuralComparable, IComparable
505505
{
506506
/// <summary>
507507
/// The value of the component 1 of the tuple.
@@ -613,10 +613,10 @@ public override string ToString()
613613
return sb.ToString();
614614
}
615615

616-
#region Implementation of ITuple
617-
int ITuple.Rank => 5;
616+
#region Implementation of ITupleStruct
617+
int ITupleStruct.Rank => 5;
618618

619-
object ITuple.this[int index]
619+
object ITupleStruct.this[int index]
620620
{
621621
get
622622
{
@@ -645,7 +645,7 @@ object ITuple.this[int index]
645645
/// <typeparam name="T6">The type of the component 6 of the tuple.</typeparam>
646646
[Serializable]
647647
[PublicAPI]
648-
public struct TupleStruct<T1, T2, T3, T4, T5, T6> : ITuple, IStructuralEquatable, IStructuralComparable, IComparable
648+
public struct TupleStruct<T1, T2, T3, T4, T5, T6> : ITupleStruct, IStructuralEquatable, IStructuralComparable, IComparable
649649
{
650650
/// <summary>
651651
/// The value of the component 1 of the tuple.
@@ -767,10 +767,10 @@ public override string ToString()
767767
return sb.ToString();
768768
}
769769

770-
#region Implementation of ITuple
771-
int ITuple.Rank => 6;
770+
#region Implementation of ITupleStruct
771+
int ITupleStruct.Rank => 6;
772772

773-
object ITuple.this[int index]
773+
object ITupleStruct.this[int index]
774774
{
775775
get
776776
{
@@ -801,7 +801,7 @@ object ITuple.this[int index]
801801
/// <typeparam name="T7">The type of the component 7 of the tuple.</typeparam>
802802
[Serializable]
803803
[PublicAPI]
804-
public struct TupleStruct<T1, T2, T3, T4, T5, T6, T7> : ITuple, IStructuralEquatable, IStructuralComparable, IComparable
804+
public struct TupleStruct<T1, T2, T3, T4, T5, T6, T7> : ITupleStruct, IStructuralEquatable, IStructuralComparable, IComparable
805805
{
806806
/// <summary>
807807
/// The value of the component 1 of the tuple.
@@ -933,10 +933,10 @@ public override string ToString()
933933
return sb.ToString();
934934
}
935935

936-
#region Implementation of ITuple
937-
int ITuple.Rank => 7;
936+
#region Implementation of ITupleStruct
937+
int ITupleStruct.Rank => 7;
938938

939-
object ITuple.this[int index]
939+
object ITupleStruct.this[int index]
940940
{
941941
get
942942
{
@@ -969,7 +969,7 @@ object ITuple.this[int index]
969969
/// <typeparam name="T8">The type of the component 8 of the tuple.</typeparam>
970970
[Serializable]
971971
[PublicAPI]
972-
public struct TupleStruct<T1, T2, T3, T4, T5, T6, T7, T8> : ITuple, IStructuralEquatable, IStructuralComparable, IComparable
972+
public struct TupleStruct<T1, T2, T3, T4, T5, T6, T7, T8> : ITupleStruct, IStructuralEquatable, IStructuralComparable, IComparable
973973
{
974974
/// <summary>
975975
/// The value of the component 1 of the tuple.
@@ -1111,10 +1111,10 @@ public override string ToString()
11111111
return sb.ToString();
11121112
}
11131113

1114-
#region Implementation of ITuple
1115-
int ITuple.Rank => 8;
1114+
#region Implementation of ITupleStruct
1115+
int ITupleStruct.Rank => 8;
11161116

1117-
object ITuple.this[int index]
1117+
object ITupleStruct.this[int index]
11181118
{
11191119
get
11201120
{

Main/src/Structures/TupleStruct.tt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace CodeJam
5050
<# }#>
5151
[Serializable]
5252
[PublicAPI]
53-
public struct TupleStruct<<#=typeList#>> : ITuple, IStructuralEquatable, IStructuralComparable, IComparable
53+
public struct TupleStruct<<#=typeList#>> : ITupleStruct, IStructuralEquatable, IStructuralComparable, IComparable
5454
{
5555
<# for (var j = 1; j <= i; j++) {#>
5656
/// <summary>
@@ -135,10 +135,10 @@ namespace CodeJam
135135
return sb.ToString();
136136
}
137137

138-
#region Implementation of ITuple
139-
int ITuple.Rank => <#=i#>;
138+
#region Implementation of ITupleStruct
139+
int ITupleStruct.Rank => <#=i#>;
140140

141-
object ITuple.this[int index]
141+
object ITupleStruct.this[int index]
142142
{
143143
get
144144
{

0 commit comments

Comments
 (0)