From 906636700766aa05cdc8bc15a3d00cc86a985ab5 Mon Sep 17 00:00:00 2001 From: Chris Sienkiewicz Date: Wed, 23 Jan 2019 11:46:44 -0800 Subject: [PATCH] Make disposemethod readonly --- src/Compilers/CSharp/Portable/Binder/ForEachEnumeratorInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compilers/CSharp/Portable/Binder/ForEachEnumeratorInfo.cs b/src/Compilers/CSharp/Portable/Binder/ForEachEnumeratorInfo.cs index f9bb86cdf4f..1582e9497f2 100644 --- a/src/Compilers/CSharp/Portable/Binder/ForEachEnumeratorInfo.cs +++ b/src/Compilers/CSharp/Portable/Binder/ForEachEnumeratorInfo.cs @@ -30,7 +30,7 @@ internal sealed class ForEachEnumeratorInfo public AwaitableInfo DisposeAwaitableInfo; // When using pattern-based Dispose, this stores the method to invoke to Dispose - public MethodSymbol DisposeMethod; + public readonly MethodSymbol DisposeMethod; // Conversions that will be required when the foreach is lowered. public readonly Conversion CollectionConversion; //collection expression to collection type -- GitLab