Skip to content

Commit

Permalink
Merge pull request #1101 from Unity-Technologies/implement-read-string
Browse files Browse the repository at this point in the history
Implement a ReadString overload (case 1106236)
  • Loading branch information
joshpeterson authored Dec 12, 2018
2 parents 764f57f + 26aa0ea commit e1b2f98
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1193,10 +1193,15 @@ protected Exception CreateMissingIXmlSerializableType (string name, string ns, s
throw new NotImplementedException ();
}

[MonoTODO]
protected string ReadString (string value, bool trim)
{
throw new NotImplementedException ();
readCount++;
string str = reader.ReadString ();
if (str != null && trim)
str = str.Trim();
if (value == null || value.Length == 0)
return str;
return value + str;
}

[MonoTODO]
Expand Down

0 comments on commit e1b2f98

Please sign in to comment.