摘要:
public ActionResult AddPost() { ResponseResult result = new ResponseResult(); StringBuilder strInfo = new StringBuilder(); strInfo.Append(string.Forma 阅读全文
摘要:
//有方法名,有参数个数,有参数类型,有参数顺序(参数的传递) namespace ConsoleApplication3{ class Program { public static int Add(int x, int y)//使用静态修饰词static 需要用类名.出来 { return x 阅读全文
摘要:
//属性是一种用于访问对象或类的特性的成员。属性可以包括字符串的长度、字体的大小、窗体的标题和客户的名称。属性是成员的自然扩展,二者都是关联类型的命名成员。namespace ConsoleApplication3{ class User { private string name;//定义一个st 阅读全文