public List<string> GetTokenKeys()
{
if (this.tokens == null)
{
throw new Exception("You must load tokens first, either with xml or directly.");
}
List<string> keys = new List<string>();
foreach (KeyValuePair<string, string> k in this.tokens)
{
keys.Add(k.Key);
}
return keys;
}
public List<string> GetTokenKeys(string xml) { List<string> keys = new List<string>(); TokenManager t = new TokenManager(); t.Load(xml); keys = t.GetTokenKeys(); return keys; }