From cbfb5c829027a14010cc9be89a4a08e110736bc7 Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Sun, 22 May 2016 14:34:15 +0200 Subject: [PATCH] .NET Core Compatibility: string.CharEnumeator -> string.ToCharArray().GetEnumerator --- plist-cil/ASCIIPropertyListParser.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plist-cil/ASCIIPropertyListParser.cs b/plist-cil/ASCIIPropertyListParser.cs index 89a2903..7a88eba 100644 --- a/plist-cil/ASCIIPropertyListParser.cs +++ b/plist-cil/ASCIIPropertyListParser.cs @@ -723,7 +723,9 @@ namespace Claunia.PropertyList public static string ParseQuotedString(string s) { List strBytes = new List(); - CharEnumerator c = s.GetEnumerator(); + + var characters = (IEnumerable)s.ToCharArray(); + var c = characters.GetEnumerator(); while (c.MoveNext()) { @@ -769,7 +771,7 @@ namespace Claunia.PropertyList /// The unescaped character as a string. /// The string character iterator pointing to the first character after the backslash /// If an invalid Unicode or ASCII escape sequence is found. - private static string ParseEscapedSequence(CharEnumerator iterator) + private static string ParseEscapedSequence(IEnumerator iterator) { iterator.MoveNext(); char c = iterator.Current;