public class MyRemote : System.MarshalByRefObject
{
public MyRemote(int val)
{
a = val;
}
~MyRemote()
{
Console.WriteLine("MyRemote destructor");
}
public void Foo()
{
Console.WriteLine("MyRemote.Foo called");
}
public int A
{
get
{
Console.WriteLine("MyRemote.A called");
return a;
}
set
{
a = value;
}
}
protected int a;
}
~是按位取反的意思,那么在~MyRemote()这是什么作用
{
public MyRemote(int val)
{
a = val;
}
~MyRemote()
{
Console.WriteLine("MyRemote destructor");
}
public void Foo()
{
Console.WriteLine("MyRemote.Foo called");
}
public int A
{
get
{
Console.WriteLine("MyRemote.A called");
return a;
}
set
{
a = value;
}
}
protected int a;
}
~是按位取反的意思,那么在~MyRemote()这是什么作用
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货