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;