c sharp if string equals April 13, 2023 by wordlinkanswers Home - Q & A - c sharp if string equals c sharp if string equals Comment 5 // There are two ways to check if 2 strings are the same:<br /> string str1 = “Hello”;<br /> string str2 = “Hello”;</p> <p>// The first is using double equals sign ==<br /> str1 == str2; // Output: true</p> <p>// The second is using the ‘Equals()’ function<br /> str1.Equals(str2); // Output: true Popularity 9/10 Helpfulness 7/10 Language csharp Source: WorldLinkAnswers Tags: c c# equals sharp Share Link to this answer Share Contributed on Feb 27 2020 SkelliBoi 0 Answers Avg Quality 2/10 wordlinkanswers
Reviews