Blog VS 2010 All Tutorials Wordpress Studio
Certification LinksRandom Thoughts

Posts Tagged ‘ c# string compare ’

String Compare Method

May 26th, 2010 | By | Category: C Sharp, C# String Object, Tutorials

String Compare is a method that will compare 2 strings and returns an integer. ( 0 = alike and 1 = different).



String Compare

May 13th, 2010 | By | Category: C# String Object, Tutorials

String Compare is a method that will compare 2 strings and returns an integer. ( 0 = alike and 1 = different). The syntax: set a variable to collect the results: int intCompareResults; //set the value of intCompareResults intCompareResults = String.Compare(‘hello’,’Hello’); intCompareResults will = 1 because hello and Hello are not seen as the same [...]