コード例 #1
0
        public bool TryUpdate(TKey key, TValue newValue, TValue comparisonValue)
        {
            // key could be null
            if (key == null)
            {
                // ConcurrentDictionary hates null
                throw new ArgumentNullException(nameof(key));
            }

            return(_wrapped.TryUpdate(key, newValue, comparisonValue));
        }