03 2013 档案

摘要:wpf 随记 阅读全文
posted @ 2013-03-29 23:07 aggier 阅读(379) 评论(0) 推荐(0)
摘要:varinString=list.FindAll(delegate(strings) {returns.Indexof("YJingLee")>=0;}); varinString=list.FindAll(s=>s.Indexof("YJingLee")>=0); Lambda表达式格式:(参数列表)=>表达式或语句块 具体意义:定义Lambda接受参数列表,运行表达式或语句块返回表达式或语句块的值传给这个参数列表。 C# ambda表达式参数类型可以是隐式类型或显式类型。在显式列表中,每个参数的类型是显式指定的,在隐式列表中, 阅读全文
posted @ 2013-03-24 23:01 aggier 阅读(816) 评论(1) 推荐(0)
摘要:用途:IEnumerable 只是为了实现foreach语句用的.主要的方法有:IEnumerator GetEnumerator() //返回一个循环访问集合的枚举数,返回类型是IEnumerator实例: public class Person : IEnumerable { private string[] names= new string[] { "A", "B", "C" }; public IEnumerator GetEnumerator() { //调用PersonEnumerator类的构造函数,并Person类中 阅读全文
posted @ 2013-03-16 10:58 aggier 阅读(1025) 评论(1) 推荐(1)
摘要:1.先来个最常用的 bool 转 Visiblexmlns:local="clr-namespace:KTVClient.Modules.Main.VMMBase.PublicViewModel;assembly=KTVClient.Modules.Main.VMMBase" > <local:BoolVisible x:Key="converter" />Visibility="{Binding IsShowing, Converter={StaticResource ResourceKey=converter}" 阅读全文
posted @ 2013-03-11 00:54 aggier 阅读(416) 评论(0) 推荐(0)