public static string ToTagString(Tag tag)
{
if (tag.Name == null || tag.Id == null) return null;
try
{
return tag.Name + " - " + NetworkConverter.ToBase64UrlString(tag.Id);
}
catch (Exception e)
{
throw new ArgumentException("ArgumentException", e);
}
}