Esempio n. 1
0
        private static List <string> GetStringList(Dictionary <string, object> from, string key)
        {
            List <object> list  = HandshakeData.Get(from, key) as List <object>;
            List <string> list2 = new List <string>(list.Count);

            for (int i = 0; i < list.Count; i++)
            {
                string text = list[i] as string;
                if (text != null)
                {
                    list2.Add(text);
                }
            }
            return(list2);
        }
Esempio n. 2
0
 private static int GetInt(Dictionary <string, object> from, string key)
 {
     return((int)((double)HandshakeData.Get(from, key)));
 }
Esempio n. 3
0
 private static string GetString(Dictionary <string, object> from, string key)
 {
     return(HandshakeData.Get(from, key) as string);
 }