クローン可能な「長い」の代わりに何を使用できますか?
ここでエラーが発生しているコードを以下に参照してください。
public static CloneableDictionary<string, long> returnValues = new CloneableDictionary<string, long>();
編集:見つけた次のコードを使用したかったことを忘れていました(以下を参照)。
public class CloneableDictionary<TKey, TValue> : Dictionary<TKey, TValue> where TValue : ICloneable
{
public IDictionary<TKey, TValue> Clone()
{
var clone = new CloneableDictionary<TKey, TValue>();
foreach (KeyValuePair<TKey, TValue> pair in this)
{
clone.Add(pair.Key, (TValue)pair.Value.Clone());
}
return clone;
}
}