From 80af6c410042dc95de77e7465b663b84af6b9d3f Mon Sep 17 00:00:00 2001 From: James Manning Date: Sat, 30 Mar 2024 12:29:16 -0400 Subject: [PATCH] add select clause so example code compiles --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d85627491..a717f70a13 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,8 @@ Rx elevates the support for live streams of information to the same level as we ```cs var bigTrades = from trade in trades - where trade.Volume > 1_000_000; + where trade.Volume > 1_000_000 + select trade; ``` 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: