![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
.Net
qq_40238811
这个作者很懒,什么都没留下…
展开
-
C#盛金公式求解一元三次方程
static float A; static float B; static float C; static float delta; static float x1, x2, x3; static float x2_real, x3_real, x2_virtual, x3_virtual; static float deltaQuadratic; /// <summary> .转载 2020-09-01 10:03:18 · 1439 阅读 · 4 评论 -
c#委托方法 把方法交给调用的地方去实现
定义一个类如下,假设下方类中GetCount方法需要由具体情况来决定如何写的话:public delegate decimal GetCountDelegate(object item);public class CommonHelper{ public event GetCountDelegate GetCountEvent; public CommonHelper(GetCountDelegate _getCount) { GetCountEvent原创 2020-07-15 15:40:07 · 195 阅读 · 0 评论 -
c# 使用多个TASK事务,等待返回值
在一个有返回值的方法中,我们启用三个事务分别处理数据,每个事务假设耗时为两秒,代码如下:private List<string> Test() { //事务列表 List<Task<List<string>>> tasks = new List<Task<List<string>>>(); //开始时间 Da原创 2020-05-26 13:57:30 · 3287 阅读 · 0 评论