mirror of
https://github.com/claunia/plist-cil.git
synced 2025-12-16 19:14:26 +00:00
.NET Core Compatibility: string.CharEnumeator -> string.ToCharArray().GetEnumerator
This commit is contained in:
@@ -723,7 +723,9 @@ namespace Claunia.PropertyList
|
|||||||
public static string ParseQuotedString(string s)
|
public static string ParseQuotedString(string s)
|
||||||
{
|
{
|
||||||
List<byte> strBytes = new List<byte>();
|
List<byte> strBytes = new List<byte>();
|
||||||
CharEnumerator c = s.GetEnumerator();
|
|
||||||
|
var characters = (IEnumerable<char>)s.ToCharArray();
|
||||||
|
var c = characters.GetEnumerator();
|
||||||
|
|
||||||
while (c.MoveNext())
|
while (c.MoveNext())
|
||||||
{
|
{
|
||||||
@@ -769,7 +771,7 @@ namespace Claunia.PropertyList
|
|||||||
/// <returns>The unescaped character as a string.</returns>
|
/// <returns>The unescaped character as a string.</returns>
|
||||||
/// <param name="iterator">The string character iterator pointing to the first character after the backslash</param>
|
/// <param name="iterator">The string character iterator pointing to the first character after the backslash</param>
|
||||||
/// <exception cref="EncoderFallbackException">If an invalid Unicode or ASCII escape sequence is found.</exception>
|
/// <exception cref="EncoderFallbackException">If an invalid Unicode or ASCII escape sequence is found.</exception>
|
||||||
private static string ParseEscapedSequence(CharEnumerator iterator)
|
private static string ParseEscapedSequence(IEnumerator<char> iterator)
|
||||||
{
|
{
|
||||||
iterator.MoveNext();
|
iterator.MoveNext();
|
||||||
char c = iterator.Current;
|
char c = iterator.Current;
|
||||||
|
|||||||
Reference in New Issue
Block a user