Answers for "compare 2 string condition c#"

C#
2

compare two strings in c#

string s1 = "string";
string s2 = "string";

if (s1 == s2)
{
  doThis();
}
Posted by: Guest on December-02-2021
-1

how to compare two strings in c# using if condition

string name1 = "content";
string name2 = "content";

if (string.compare(name1,name2) == 0)
{
	"ACTION"
}
Posted by: Guest on August-09-2021

C# Answers by Framework

Browse Popular Code Answers by Language