摘要:
public class DelayQueue<T> { private List<DelayQueueItem<T>> items = new List<DelayQueueItem<T>>(); public void Enqueue(T item) { Enqueue(item, TimeSp 阅读全文
摘要:
先看下人传人的解果 本人朋友圈是第一发的这个文案和图片,随后的几分钟里出现了3个转发。虽然不是很多,但是也代表了,人传人的效果。 来看下原文案的评论和点赞 原理分析 时机 发布这条朋友圈的当天是母亲节,所以文案中祝妈妈节日快乐。 还能祝妈妈节日快乐的,应该就是母亲生日当天了,那文案应该就是母亲节快乐 阅读全文
摘要:
Task 常规使用 无返回值Task 普通的无返回值方法: 实现异步的方法只用方法添加 async关键字, 方法内部有await 等待执行就可以了 效果图如下 当然如果方法无async和await想实现异步也是可以的, 需要开启一个任务,然后返回Task.FromResult(0),当一个方法的返回 阅读全文
摘要:
Expression> expression = t => true; expression = expression.And(t => t.AAA == 1); expression = expression.And(t => t.BBB > 1); var ds = products.AsQueryable().Where(expression).ToList(); 阅读全文
摘要:
public partial class BaseDalwhere T :class { //DbContext context = new HMOAContainer(); DbContext context = ContextFactory.GetContext(); //增加 public int Add(T userInfo) ... 阅读全文
摘要:
--2.思路:--每页5条数据,要看第3页的数据--1>先为每条记录增加一个行号。row_number()--2>通过用户要查看的数据,使用行号进行筛选。--3每页5条,要看第3也,因该是从第(2*5)+1 ... 3*5 select * from (select *,rn=row_number( 阅读全文
摘要:
访问失败, 解决方案,URL要正确 阅读全文
摘要:
错误提示: The animation state run could not be played because it couldn't be found!Please attach an animation clip with the name 'run' or call this function only for existing animations.UnityEngine.Anima... 阅读全文