List<T> 的条件筛选 where使用方法
摘要:Listts.Where(t => t.content.IndexOf(search) != -1).ToList();相当于 sql语句: [代码]================t=> search.Contains(t.content) 这个相当于 sql语句:[代码]
阅读全文
posted @
2009-11-26 15:56
微星
阅读(21432)
推荐(1) 编辑
读取XML示例:C#获取XML的数据
摘要:读取XML示例:C#获取XML的数据XML作为数据源来存储一些数据,那么如何获取XML中的数据呢?XML文件代码如下:1<?xml version="1.0" encoding="utf-8" ?>2<Tables>3 <Table Name="User_Info">4 <Field Name="User_ID">5 <Chinese>标...
阅读全文
posted @
2009-11-26 15:40
微星
阅读(793)
推荐(0) 编辑
vs 提示 no template information found
摘要:visual studio 2008 sp1 "no template information found" 今天打开vs新建项目时候弹出“no template information found”,我的新建项目中仅剩下了Smart Device这一项,很是诡异。解决方案:打开visual studio 命令行运行以下指令:devenv /installvstemplat...
阅读全文
posted @
2009-11-23 13:56
微星
阅读(330)
推荐(0) 编辑
Silverlight3 动画 学习笔录
摘要:在 Silverlight 中,通过对对象的个别属性应用动画,可以对对象进行动画处理。在 Silverlight 中,您只能对值类型为 Double、Color或 Point 的属性执行简单的动画处理。此外,还可以使用 ObjectAnimationUsingKeyFrames 对其他类型的属性进行动画处理,但是这需要使用离散内插(从一个值跳到另一个值),而多数人认为这不是真正的动画。若要向对象应...
阅读全文
posted @
2009-11-08 22:25
微星
阅读(203)
推荐(0) 编辑