079 – How to use C# string Equals

0
1



C# String Equals function is to check the specified two String Object values are same or not

bool string.Equals(string str1,string str2)

Parameters:

String str1 : The String argument

String str2 : The String argument

Returns:

Boolean : Yes/No

It return the values of the two String Objects are same

For ex :

Str1 = “Equals()”

Str2 = “Equals()”

String.Equals(Str1,Str2) returns True

String.Equals(Str1.ToLower,Str2) returns False

Because the String Objects values are different

Moreover, you should also visit our:

Website:
Blog:
Shop:
FbPage:
Twitter:
Google+ :
YouTube:
Email: help@theengineeringprojects.com
Skype: theenggprojects
Mobile / WhatsApp : +92-332-6062060

Thanks for Watching.

Nguồn:https://wijstaanvooronzegrondrechten.org/

LEAVE A REPLY

Please enter your comment!
Please enter your name here