为什么会这样
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace 要删除的
{
public class A
{
public A Clone()
{
return (A)this.MemberwiseClone();
}
}
class Program
{
static void Main(string[] args)
{
A x = new A();
A x_clone = x.Clone();
}
}
}
请问这里为什么要显示的 我知道去掉(A)将无法隐式转换 我个人认为返回this.MemberwiseClone()已经是个对象了 无需再用(A)了 请高手指教 谢谢啦