Exemplo n.º 1
0
 public static Version GetVersion(this IGameDatabase db, string key)
 {
     if (!db.ContainsKey(key))
     {
         return(null);
     }
     return(new Version(db.GetString(key)));
 }
Exemplo n.º 2
0
        public static DateTime?GetDate(this IGameDatabase db, string key)
        {
            if (!db.ContainsKey(key))
            {
                return(null);
            }

            var l = db.GetLong(key);

            if (l == -1)
            {
                return(null);
            }

            var d = DateTime.FromBinary(l);

            return(d);
        }