Hello,
I need help to make sure this method will tell me the comparision is the same in length:
Here's what I have :
private bool Matched(string Target, string text){
return text.ToLower().Trim().Length.Equals(Target.ToLower().Trim().Length);
}
Do correct me if there is a mistake.
I'd also like to know if I didn't put in the Length will it affect the evaluation ?
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Sep 12, 2020, 3:50 AM EDT
Nisha RegilRank #1,956 · 748 reputationPosted Sep 11, 2020, 4:17 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Sep 11, 2020, 4:24 AM EDT
Tangara GRank #4,983 · 316 reputationPosted Sep 11, 2020, 10:26 PM EDT
Tangara GRank #4,983 · 316 reputationPosted Sep 11, 2020, 10:29 PM EDT
Nisha RegilRank #1,956 · 748 reputationPosted Sep 11, 2020, 11:29 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Sep 12, 2020, 12:51 AM EDT
Tangara GRank #4,983 · 316 reputationPosted Sep 12, 2020, 1:49 AM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Sep 12, 2020, 2:24 AM EDT
Tangara GRank #4,983 · 316 reputationPosted Sep 12, 2020, 2:49 AM EDT
Hi Rajanikant,
Tangara GRank #4,983 · 316 reputationPosted Sep 13, 2020, 7:24 PM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Sep 13, 2020, 8:43 PM EDT
Tangara GRank #4,983 · 316 reputationPosted Sep 14, 2020, 6:34 PM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Sep 14, 2020, 8:28 PM EDT
Tangara GRank #4,983 · 316 reputationPosted Sep 15, 2020, 4:14 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts