079 - How to use C# string Equals

Опубликовано: 23 Июль 2026
на канале: The Engineering Projects
763
6

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: http://www.TheEngineeringProjects.com/
Blog: http://www.theengineeringprojects.com...
Shop: http://www.theengineeringprojects.com...
FbPage:   / theengineeringprojects  
Twitter:   / syedzainnasir  
Google+ : https://plus.google.com/+SyedZainNasir
YouTube:    / theengineeringprojects  
Email: [email protected]
Skype: theenggprojects
Mobile / WhatsApp : +92-332-6062060

Thanks for Watching.