上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 82 下一页
摘要: Class aa { public aa() public void kk() { } } class D : IDisposable { void IDisposable.Dispose() { } public void Dispose() { } public static void Main() { using (D d = new D()) { } // Dmust be Disposa... 阅读全文
posted @ 2010-04-20 23:39 greencolor 阅读(100) 评论(0) 推荐(0) 编辑
摘要: params: no need initialization, use variables as parametersclass App { public static void UseParams(params object[] list) { for (int i = 0; i < list.Length; i++) { Console.WriteLine(list[i]); } } s... 阅读全文
posted @ 2010-04-20 22:27 greencolor 阅读(158) 评论(0) 推荐(0) 编辑
摘要: error CS0227: Unsafe code may only appear if compiling with /unsafe要在vs.net中使用unsafe code, 必须在项目的属性中设置一下,设置方法如下:点项目属性->配置属性->生成->常规中:允许不安全代码(钩上) 阅读全文
posted @ 2010-04-20 16:29 greencolor 阅读(274) 评论(0) 推荐(0) 编辑
摘要: Convert ComboBoxItem into Class array, which contains different class type public class ComboBoxItem<T> { private string _itemText; public string ItemText { get { return _itemText; } set { _ite... 阅读全文
posted @ 2010-04-20 16:04 greencolor 阅读(300) 评论(0) 推荐(0) 编辑
摘要: Vector3 is a class Vector3[] vectorarray = new Vector3[] {new Vector3(23, 4, 5), new Vector3(3, 4, 5)}; == Vector3 vectorsingle = new Vector3(23, 4, 5); Vector3 vectorsingle2 = new Vector3(3, 4, 5); V... 阅读全文
posted @ 2010-04-18 14:44 greencolor 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Reference toC:\Program Files\Reference Assemblies\Microsoft\Tablet PC\v1.7 阅读全文
posted @ 2010-04-18 10:35 greencolor 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Convert bool to int(int) ((this.SetmnType == NewmnType.mbol) ? 1 : 0)Convert float to int(int)(float)90f: 阅读全文
posted @ 2010-04-15 12:22 greencolor 阅读(444) 评论(0) 推荐(0) 编辑
摘要: System.Nullable<T> variable-or-T? variable 阅读全文
posted @ 2010-04-14 11:17 greencolor 阅读(87) 评论(0) 推荐(0) 编辑
摘要: Class|---------------------------------------------------------------------------|||Function-----------------------------------|| |Function for example public void aaa()|| | Use other method, new othe... 阅读全文
posted @ 2010-04-14 00:05 greencolor 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1): In the SR.resx file, the item contain {0}----------------------------------------------------------in the SR.Designer.cs file /// <summary> ///Get information from theresx with the style as:... 阅读全文
posted @ 2010-04-13 23:30 greencolor 阅读(207) 评论(0) 推荐(0) 编辑
上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 82 下一页