为什么.net委托赋值运算符不分配对原始委托的引用?

AZ.*_*AZ. 1 c# delegates

为什么copyOfDelegate是原始委托的副本,而不是原始委托的副本?

    public class DelegateTester
    {
        public delegate void PrintDelegate();

        public PrintDelegate PrintCallback;
    }

    public class Client
    {
        public void Print()
        {
            Console.WriteLine("in client");
        }
    }



   static void main()     
   {  
      DelegateTester tester = new DelegateTester();
      Client client = new Client();

      tester.PrintCallback += new DelegateTester.PrintDelegate(client.Print);
      tester.PrintCallback += new DelegateTester.PrintDelegate(client.Print);

      // copy the delegate
      DelegateTester.PrintDelegate copyOfDelegate = tester.PrintCallback;
      tester.PrintCallback -= new DelegateTester.PrintDelegate(client.Print);

      tester.PrintCallback();
      copyOfDelegate.Invoke();
    }
Run Code Online (Sandbox Code Playgroud)

Opt*_*eam 5

代表是像字符串一样不可变的.这是一篇文章..