2015年11月17日
摘要: using System;using System.Collections.Generic;using System.Linq;public class MyClass{ public static void RunSnippet() { var students = new[] { new... 阅读全文
posted @ 2015-11-17 15:37 jinweijie0527 阅读(119) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;public class MyClass{ static void DoStuff(T t,S s) where T:MyClass { Console.WriteLine("T:{0}",t); Con... 阅读全文
posted @ 2015-11-17 10:53 jinweijie0527 阅读(147) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;class Person{ public int Age; public static explicit operator int(Person p) { return p.Age; }}public cl... 阅读全文
posted @ 2015-11-17 10:18 jinweijie0527 阅读(109) 评论(0) 推荐(0) 编辑