?? program.cs
字號:
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace Project3
{
class Person
{
public String Name;
public int Age;
}
class Program
{
static void Main(string[] args)
{
Thread newThread = new Thread(new ParameterizedThreadStart(OtherFunction));
Person p = new Person();
p.Name = "Mustansir";
p.Age = 22;
newThread.Start(p);
}
static void OtherFunction(object param)
{
Person p = (Person)param;
Console.WriteLine("Person information obtained : " + p.Name);
Console.WriteLine("Person's Age : " + p.Age);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -