📄 default.aspx.cs
字号:
using System;
using System.Collections;
using System.Collections.Generic;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Person scott = new Person("Scott", "Hanselman");
Person bill = new Person("Bill", "Evjen");
Person srini = new Person("Srinivasa", "Sivakumar");
List<Person> people = new List<Person>();
people.Add(scott);
people.Add(bill);
people.Add(srini);
foreach (Person p in people)
{
Response.Write(p.FullName + "<BR/>");
}
for (int i = 0; i < people.Count; i++)
{
Response.Write(people[i].FullName + "<BR/>");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -