mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-07 13:57:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user