Check if a string is suffix of another | C # program to find if a string is suffix of another ; Test case - sensitive implementation of endsWith function
using System ; class GFG { public static void Main ( String [ ] args ) { String s1 = " geeks " , s2 = " geeksforgeeks " ; bool result = s2 . EndsWith ( s1 ) ; if ( result ) Console . WriteLine ( " Yes " ) ; else Console . WriteLine ( " No " ) ; } }