Add another readonly attribute
authorVance Morrison <vancemorrison@comcast.net>
Fri, 18 May 2018 20:40:11 +0000 (13:40 -0700)
committerVance Morrison <vancemorrison@comcast.net>
Fri, 18 May 2018 20:40:11 +0000 (13:40 -0700)
src/System.Private.CoreLib/shared/System/Text/StringBuilder.cs

index e760283..964a56a 100644 (file)
@@ -584,7 +584,7 @@ namespace System.Text
         /// It needs to be public (so the compiler can use it when building a foreach statement) 
         /// but users typically don't use it explicitly (which is why it is a nested type).  
         /// </summary>
-        public struct ChunkEnumerable
+        readonly public struct ChunkEnumerable
         {
             /// <summary>
             /// Implements the IEnumerable pattern.