fork(6) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. // your code goes here
  8. var s1 = "Strasse";
  9. var s2 = "Straße";
  10.  
  11. var x = s1.Equals(s2, StringComparison.Ordinal); //false
  12.  
  13. var y = s1.Equals(s2, StringComparison.InvariantCulture); //true
  14. Console.WriteLine(x);
  15. Console.WriteLine(y);
  16.  
  17. }
  18. }
Success #stdin #stdout 0.03s 15560KB
stdin
Standard input is empty
stdout
False
True