diff options
author | Justin Van Patten <jvp@justinvp.com> | 2017-01-03 13:51:26 -0800 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-01-03 13:51:26 -0800 |
commit | 5ad20fb5ed153c01082611c6afc97c362c34a82e (patch) | |
tree | 3018331a93abecf68220251fbd69aa53838d27d8 /src | |
parent | 7be8f56ce218029bcd4d68f013aacd4070994b22 (diff) | |
download | coreclr-5ad20fb5ed153c01082611c6afc97c362c34a82e.tar.gz coreclr-5ad20fb5ed153c01082611c6afc97c362c34a82e.tar.bz2 coreclr-5ad20fb5ed153c01082611c6afc97c362c34a82e.zip |
TimeZoneInfo.StringSerializer can be a struct (#8784)
Diffstat (limited to 'src')
-rw-r--r-- | src/mscorlib/src/System/TimeZoneInfo.StringSerializer.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mscorlib/src/System/TimeZoneInfo.StringSerializer.cs b/src/mscorlib/src/System/TimeZoneInfo.StringSerializer.cs index 0e495bc9d1..8012d1f4b1 100644 --- a/src/mscorlib/src/System/TimeZoneInfo.StringSerializer.cs +++ b/src/mscorlib/src/System/TimeZoneInfo.StringSerializer.cs @@ -12,10 +12,9 @@ namespace System public sealed partial class TimeZoneInfo { /// <summary> - /// This class is used to serialize and deserialize TimeZoneInfo - /// objects based on the custom string serialization format. + /// Used to serialize and deserialize TimeZoneInfo objects based on the custom string serialization format. /// </summary> - private sealed class StringSerializer + private struct StringSerializer { private enum State { @@ -124,6 +123,7 @@ namespace System private StringSerializer(string str) { _serializedText = str; + _currentTokenStartIndex = 0; _state = State.StartOfToken; } |