Skip to content

Commit

Permalink
XmlHelper improvement.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sina-Soltani committed Jan 21, 2020
1 parent 69f5896 commit b709788
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Parbad/Utilities/XmlHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ public static bool TryDeserialize<T>(Stream stream, out T obj)

public static string EncodeXmlValue(string value)
{
if (value.IsNullOrEmpty())
{
return value;
}

return new XElement("t", value).LastNode.ToString();
}
}
Expand Down

0 comments on commit b709788

Please sign in to comment.