Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Articulos.Cap06
- {
- public class ComparacionSemantica
- {
- public static void Main()
- {
- Console.WriteLine ("¿Iguales {0} y {1}?: {2}", "EINSTEIN", "Einstein",
- String.Equals("Einstein", "EINSTEIN", StringComparison.OrdinalIgnoreCase)); // True
- Console.WriteLine ("\n¿Iguales {0} y {1}?: {2}", '\u1E7A'.ToString(), '\u01D5'.ToString(),
- '\u1E7A'.ToString() == '\u01D5'.ToString());
- Console.WriteLine ("\n¿Iguales {0} y {1}?: {2}", '\u1E7A'.ToString(), '\u01D5'.ToString(),
- String.Equals('\u1E7A'.ToString(), '\u01D5'.ToString(), StringComparison.CurrentCulture));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement