From 5c4ff96a908149d0dc776cd46970dcd23c18a2b1 Mon Sep 17 00:00:00 2001 From: Rijicho <32390417+Rijicho@users.noreply.github.com> Date: Wed, 10 Jun 2026 11:45:18 +0900 Subject: [PATCH] Update recipes.md --- docs/recipes.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/recipes.md b/docs/recipes.md index 44117a5..5feb92a 100644 --- a/docs/recipes.md +++ b/docs/recipes.md @@ -12,13 +12,13 @@ comma-separated arguments that collapses to empty parentheses when the list is e ### Single-line parameters -The simplest approach uses `.Lazy().Join()`: +The simplest approach uses `.AsProxy().Join()`: ```csharp var args = new[] { "int x", "string name", "bool flag" }; Console.WriteLine(Render($$""" -void DoSomething({{args.Lazy().Join(", ")}}) +void DoSomething({{args.AsProxy().Join(", ")}}) """)); ``` @@ -149,7 +149,7 @@ entirely when empty: var typeParams = new[] { "T", "U" }; Console.WriteLine(Render($$""" -class MyClass{{typeParams.Lazy().Join(", ", "<", ">")}} +class MyClass{{typeParams.AsProxy().Join(", ", "<", ">")}} """)); ```