2011.12.23

1.一直以为List<T>的Select和Linq的是一个意思,原来搞错了,他的意思其实只是投影,并不会抛弃掉不符合条件的数据。
var result = (from p in values
              where p.CId == "40,39"
select p).ToList();
int count = result.Count();

IEnumerable<News> result2 = values.Select(new Func<News, int, News>(
  (p, i) =>
{
if (p.CId == "40, 39")
{
return p;
}
else
{
return null;
}
}));

2.C#RSA加密解密

http://www.cnblogs.com/linzheng/archive/2011/02/20/1959123.html

3. VerticalAlignment,HorizontalAlignment 是设置在父容器的相对位置

原文地址:https://www.cnblogs.com/jeekun/p/2299843.html