mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
21 lines
578 B
C#
21 lines
578 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Roblox.Common
|
|
{
|
|
public static class XMLUtil
|
|
{
|
|
public static string GenerateXMLTable(ICollection<KeyValuePair<object, object>> entries)
|
|
{
|
|
string text = "<Value><Table>";
|
|
foreach (var entry in entries)
|
|
text += string.Format("<Entry><Key>{0}</Key><Value>{1}</Value></Entry>", entry.Key.ToString(), entry.Value.ToString());
|
|
text += "</Table></Value>";
|
|
return text;
|
|
}
|
|
public static string GenerateXMLBool(bool value)
|
|
{
|
|
return string.Format("<List><Value>{0}</Value></List>", value.ToString());
|
|
}
|
|
}
|
|
}
|