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); }
private static int GetInt(Dictionary <string, object> from, string key) { return((int)((double)HandshakeData.Get(from, key))); }
private static string GetString(Dictionary <string, object> from, string key) { return(HandshakeData.Get(from, key) as string); }