Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

C# Check if variables are equal

string str1 = "1";
string str2 = "1";

if(String.Compare(str1, str2) == 0)
{
    Console.WriteLine(str1 + " and " + str2 + " are equal");
}
else
{
    Console.WriteLine(str1 + " and " + str2 + " are not equal");
}
Console.ReadKey();
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# unary operator 
Csharp :: C# bitwise complement 
Csharp :: cs foreach int 
Csharp :: C# remain space 
Csharp :: dapper query list of parameters 
Csharp :: join 2 list rows into one row and add totals fields C# 
Csharp :: ignore warning openxml 
Csharp :: convert list of object linq 
Csharp :: grab reference from method parameter c# 
Csharp :: how to create vg in aix 
Csharp :: advance C# tricks and hits 
Csharp :: csharp functions 
Csharp :: how to create more accurate searching c# 
Csharp :: c# asp.net only displays name of property 
Csharp :: boucle C# 
Csharp :: Runtime.getRuntime().addShutdownHook(printingHook); c# 
Csharp :: hacker typer.com 
Csharp :: c# replace foreach with lambda 
Csharp :: c# mail retrieve library 
Csharp :: unity shader show object behind object 
Csharp :: photon2 what is a stream 
Csharp :: texture matrix 
Csharp :: c# project 
Csharp :: check list exist in list c# if matches any 
Csharp :: c# get folder of full ilepath 
Csharp :: freelance 
Csharp :: unity error cs1656 
Csharp :: webbrowser control feature_browser_emulation compatible 
Html :: html euro symbol 
Html :: how to open link in new tab 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =