Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private static void InterpolatedString()
private static void Lambda()
{
// <SnippetLambda>
int[] numbers = [2, 3, 4, 5];
int[] numbers = { 2, 3, 4, 5 };
var maximumSquare = numbers.Max(x => x * x);
Console.WriteLine(maximumSquare);
// Output:
Expand All @@ -56,7 +56,7 @@ private static void Lambda()
private static void Query()
{
// <SnippetQuery>
int[] scores = [90, 97, 78, 68, 85];
int[] scores = { 90, 97, 78, 68, 85 };
IEnumerable<int> highScoresQuery =
from score in scores
where score > 80
Expand Down