-#if NET_4_0
// ConcurrentSkipList.cs
//
// Copyright (c) 2009 Jérémie "Garuma" Laval
using System.Collections.Generic;
using System.Runtime.Serialization;
+#if NET_4_0 || BOOTSTRAP_NET_4_0
+
namespace System.Collections.Concurrent
{
public class ConcurrentDictionary<TKey, TValue> : IDictionary<TKey, TValue>,
public bool TryAdd (TKey key, TValue value)
{
+ if (key == null)
+ throw new ArgumentNullException ("key");
Basket basket;
bool taken = false;