From 4ec53eff2b6f3881953ec2f9af88b2f2c9b58364 Mon Sep 17 00:00:00 2001 From: Nasif Ishtiaque Islam Date: Sun, 5 Oct 2025 04:14:43 +0600 Subject: [PATCH] Clarify Enumerable.Prepend returns a new sequence Changed the summary from "Adds a value to the beginning of the sequence" to "Returns a new sequence that begins with the specified element followed by the elements of the source sequence." The previous wording incorrectly implied in-place modification of the original sequence. The new wording makes it clear that Prepend returns a new sequence without modifying the source, consistent with LINQ's deferred execution and immutability principles. --- xml/System.Linq/Enumerable.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Linq/Enumerable.xml b/xml/System.Linq/Enumerable.xml index 44d9f003d1c..5b5a1b9902f 100644 --- a/xml/System.Linq/Enumerable.xml +++ b/xml/System.Linq/Enumerable.xml @@ -11681,7 +11681,7 @@ If comparer is `null`, the default comparer The type of the elements of . A sequence of values. The value to prepend to . - Adds a value to the beginning of the sequence. + Returns a new sequence that begins with the specified element followed by the elements of the source sequence. A new sequence that begins with .