Skip to content

Commit 6f283f9

Browse files
authored
add select clause so example code compiles (#2097)
1 parent 7f8575d commit 6f283f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ Rx elevates the support for live streams of information to the same level as we
5151
```cs
5252
var bigTrades =
5353
from trade in trades
54-
where trade.Volume > 1_000_000;
54+
where trade.Volume > 1_000_000
55+
select trade;
5556
```
5657

5758
This uses C#'s LINQ feature to filter `trades` down to those entities with a volume greater than one million. This query expression syntax is just a shorthand for method calls, so we could also write it this way:

0 commit comments

Comments
 (0)