Mark CharEnumerator as [Serializable] (dotnet/coreclr#11124)
authorJan Kotas <jkotas@microsoft.com>
Fri, 21 Apr 2017 15:44:43 +0000 (08:44 -0700)
committerGitHub <noreply@github.com>
Fri, 21 Apr 2017 15:44:43 +0000 (08:44 -0700)
Fixes https://github.com/dotnet/corefx/issues/18704

Commit migrated from https://github.com/dotnet/coreclr/commit/0eb86139fe8f0daf9dc6893150b701980d90e52d

src/coreclr/src/mscorlib/shared/System/CharEnumerator.cs

index ea9915a..4dbd5cd 100644 (file)
@@ -17,6 +17,7 @@ using System.Collections.Generic;
 
 namespace System
 {
+    [Serializable]
     public sealed class CharEnumerator : IEnumerator, IEnumerator<char>, IDisposable, ICloneable
     {
         private String _str;