Exemple #1
0
        private bool IsValid(ISnapshot obj)
        {
            if (obj == null)
            {
                return(false);
            }
            var key    = obj.GetHashCode();
            var result = key > 0 && _snapShots.ContainsKey(key);

            return(result);
        }
Exemple #2
0
        private int GetKey(ISnapshot snapshot)
        {
            var key = snapshot.GetHashCode();

            return(_snapShots.ContainsKey(key) ? key : 0);
        }