ATUL_v1.TokenManager.GetTokenKeys C# (CSharp) Method

GetTokenKeys() public method

public GetTokenKeys ( ) : List
return List
        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;
        }

Usage Example

Beispiel #1
0
 public List<string> GetTokenKeys(string xml)
 {
     List<string> keys = new List<string>();
     TokenManager t = new TokenManager();
     t.Load(xml);
     keys = t.GetTokenKeys();
     return keys;
 }