using System;
using System.Collections.Generic;
using System.Text;

namespace newstring
{
    class Program
    {
        static void Main(string[] args)
        {
            string strOne = "ABC";

            
            char[] str ={ 'A','B','C'};
            //不能写string strOne = new string("ABC");
            //string strOne = new string(str);

            //string strTwo = strOne;
            string strTwo = new string(str);
             

             

            if(strOne == "ABC")

            {Console.WriteLine("1字符串相等");}

            if(strOne == strTwo)

            {Console.WriteLine("2字符串相等");}

            if(ReferenceEquals(strOne,strTwo))

            {Console.WriteLine("3字符串相等");}

 
        }
    }
}