using System;
namespace Articulos.Cap06
{
public class FormacionCaracteres
{
public static void Main()
{
char[] caracteres = new char[4];
caracteres[0] = 'X'; // Representación explícita del carácter X
caracteres[1] = '\x0058'; // Representación hexadecimal
caracteres[2] = (char)88; // Representación entera
caracteres[3] = '\u0058'; // Representación en Unicode
// Impresión de los caracteres en la salida estándar:
foreach(char caracter in caracteres)
{
Console.Write(caracter + " ");
}
Console.WriteLine ();
}
}
}
dXNpbmcgU3lzdGVtOwoKbmFtZXNwYWNlIEFydGljdWxvcy5DYXAwNgp7CiAgICBwdWJsaWMgY2xhc3MgRm9ybWFjaW9uQ2FyYWN0ZXJlcwogICAgewogICAgICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkgCiAgICAgICAgewogICAgICAgICAgICBjaGFyW10gY2FyYWN0ZXJlcyA9IG5ldyBjaGFyWzRdOwogICAgICAgICAgICAKICAgICAgICAgICAgY2FyYWN0ZXJlc1swXSA9ICdYJzsgICAgICAgIC8vIFJlcHJlc2VudGFjacOzbiBleHBsw61jaXRhIGRlbCBjYXLDoWN0ZXIgWAogICAgICAgICAgICBjYXJhY3RlcmVzWzFdID0gJ1x4MDA1OCc7ICAgIC8vIFJlcHJlc2VudGFjacOzbiBoZXhhZGVjaW1hbAogICAgICAgICAgICBjYXJhY3RlcmVzWzJdID0gKGNoYXIpODg7ICAgIC8vIFJlcHJlc2VudGFjacOzbiBlbnRlcmEKICAgICAgICAgICAgY2FyYWN0ZXJlc1szXSA9ICdcdTAwNTgnOyAgICAvLyBSZXByZXNlbnRhY2nDs24gZW4gVW5pY29kZQogICAgICAgICAgICAKICAgICAgICAgICAgLy8gSW1wcmVzacOzbiBkZSBsb3MgY2FyYWN0ZXJlcyBlbiBsYSBzYWxpZGEgZXN0w6FuZGFyOgogICAgICAgICAgICBmb3JlYWNoKGNoYXIgY2FyYWN0ZXIgaW4gY2FyYWN0ZXJlcykKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgQ29uc29sZS5Xcml0ZShjYXJhY3RlciArICIgIik7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgCiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lICgpOwogICAgICAgIH0KICAgIH0KfQ==