Skip to content
This repository was archived by the owner on Apr 23, 2023. It is now read-only.

Commit d8d2689

Browse files
static methods
1 parent 932f189 commit d8d2689

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

LINQ/LinqSamples/EnumerableSample/LinqSamples.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static void Except()
8181
}
8282
}
8383

84-
public void ConvertWithCast()
84+
public static void ConvertWithCast()
8585
{
8686
var list = new System.Collections.ArrayList(Formula1.GetChampions() as System.Collections.ICollection);
8787

@@ -95,7 +95,7 @@ orderby r.Wins descending
9595
}
9696
}
9797

98-
public void ZipOperation()
98+
public static void ZipOperation()
9999
{
100100
var racerNames = from r in Formula1.GetChampions()
101101
where r.Country == "Italy"
@@ -121,7 +121,7 @@ orderby r.Wins descending
121121
}
122122
}
123123

124-
public void ToLookup()
124+
public static void ToLookup()
125125
{
126126
var racers = (from r in Formula1.GetChampions()
127127
from c in r.Cars
@@ -140,7 +140,7 @@ from c in r.Cars
140140
}
141141
}
142142

143-
public void AggregateSum()
143+
public static void AggregateSum()
144144
{
145145
var countries = (from c in
146146
from r in Formula1.GetChampions()

0 commit comments

Comments
 (0)