From e93910a1bfd043865b0bf6bcd69b03ca655b2c4f Mon Sep 17 00:00:00 2001 From: hrrrrustic Date: Mon, 12 Apr 2021 13:06:06 +0300 Subject: [PATCH] readonly annotation --- .../src/System/Net/Http/Headers/ObjectCollection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Net.Http/src/System/Net/Http/Headers/ObjectCollection.cs b/src/libraries/System.Net.Http/src/System/Net/Http/Headers/ObjectCollection.cs index e7b3c4e952238..2640d07c19400 100644 --- a/src/libraries/System.Net.Http/src/System/Net/Http/Headers/ObjectCollection.cs +++ b/src/libraries/System.Net.Http/src/System/Net/Http/Headers/ObjectCollection.cs @@ -181,7 +181,7 @@ public bool MoveNext() return false; } - public T Current => _current!; + public readonly T Current => _current!; object? IEnumerator.Current => _current;