fork(1) download
  1. using System;
  2. using System.Globalization;
  3. using System.Linq;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. string name = "Sameer Singh";
  10. string searchOption="eer";
  11. bool nameStartsWith = name.StartsWith(searchOption);
  12. Console.Write("{0} {1} {2}"
  13. , name
  14. , nameStartsWith ? "starts with" : "starts not with"
  15. , searchOption);
  16. }
  17. }
Success #stdin #stdout 0.04s 37072KB
stdin
Standard input is empty
stdout
Sameer Singh starts not with eer