
asp.net
AndersZhuo123
Talk is cheap, show me the code!
展开
-
c#学习5(属性)
class Program { static void Main(string[] args) { MyClass mc = new MyClass(); mc.ID = "001"; mc.NAME = "amders"; Console.WriteLine(原创 2013-03-11 10:13:22 · 685 阅读 · 0 评论 -
c#学习(基础2)
9 while int max = 10; int i = 0; while(true) { Console.WriteLine("this isthe " + i); i++; if(i == max){原创 2013-02-25 12:33:53 · 479 阅读 · 0 评论 -
c#学习3(面向对象)
1 面向对象 和java类似,分为封装,继承,多态。 封装体现在:成员访问级别 Public 任何地方都可以访问Private 默认级别,只有本类中的成员可以访问 所有的字段都不要用public 2 属性 惯用法:属性开头字母大写! 字段开头要小写! public class Person{原创 2013-02-26 12:18:48 · 537 阅读 · 0 评论 -
c#学习4(集合)
1 数组的排序Array类的Sort和Rverse int[] arr = { 2, 3, 4, 1, 7, 5, 8 }; Array.Sort(arr);//只对一位数组有效 OutArr(arr);Reverse Array.Reverse(arr);2 ArrayList类(1) 声明方式 3 种原创 2013-03-10 13:57:26 · 718 阅读 · 0 评论 -
c#学习(基础1)
string s1 =@"\\\\"; //这四个\都是非转义字符因为使用了@ string s2 = "\\\\";//这四个\中代表转义字符 Console.WriteLine(s1);//输出四个 Console.WriteLine(s2);//输出两个 Console.ReadKey();1 第一个原创 2013-02-24 23:23:08 · 757 阅读 · 0 评论 -
C#中using关键字的作用及其用法
原文:http://blog.youkuaiyun.com/yfz19890410/article/details/7589500C#中using关键字的作用及其用法using的用途和使用技巧。 using关键字微软MSDN上解释总共有三种用途: 1、引用命名空间。 2、为命名空间或类型创建别名。 3、使用using语句。 1、引用命名空间,这样就可以转载 2013-02-27 19:31:14 · 2958 阅读 · 1 评论