c#ConcurrentDictionary和simulare同时读写 [英] c# ConcurrentDictionary and simulare read write at the same time

查看:220
本文介绍了c#ConcurrentDictionary和simulare同时读写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个单元测试,同时

I want to create a Unit Test which at the same time

1。将add添加到  ConcurrentDictionary

1. write add to ConcurrentDictionary

2。从 ConcurrentDictionary

同时读取和删除键

什么是测试它的最佳方法是什么?

what the best way to test it?

推荐答案

您好,

您能发布当前的代码工作吗?所以那些可能有帮助的人可以找到基础。

Can you post your current code effort so those who might assist have a base to go by.


这篇关于c#ConcurrentDictionary和simulare同时读写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆