?? hello.cs
字號:
using System;
using System.Runtime.Remoting.Messaging;
namespace Wrox.ProfessionalCSharp
{
/// <summary>
/// Summary description for Class1.
/// </summary>
public class Hello : System.MarshalByRefObject
{
public Hello()
{
Console.WriteLine("Constructor called");
}
~Hello()
{
Console.WriteLine("Destructor called");
}
public string Greeting(string name)
{
Console.WriteLine("Greeting called");
CallContextData cookie =
(CallContextData)CallContext.GetData("mycookie");
if (cookie != null)
{
Console.WriteLine("Cookie: " + cookie.Data);
}
return "Hello, " + name;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -