using System;
namespace Articulos.Cap04
{
internal delegate object AccionObject();
internal class Aplicacion
{
public static void Main()
{
// DeclaraciĆ³n instancia de `AccionObject`:
AccionObject del = new AccionObject(ObtenerString);
object resultado = del();
Console.WriteLine("Contenido de `resultado`: {0}", resultado);
}
public static string ObtenerString()
{
return "Blog xCSw";
}
}
}
dXNpbmcgU3lzdGVtOwoKbmFtZXNwYWNlIEFydGljdWxvcy5DYXAwNAp7CiAgICBpbnRlcm5hbCBkZWxlZ2F0ZSBvYmplY3QgQWNjaW9uT2JqZWN0KCk7CiAgICAKICAgIGludGVybmFsIGNsYXNzIEFwbGljYWNpb24KICAgIHsKICAgICAgICBwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCiAgICAgICAgewogICAgICAgICAgICAvLyBEZWNsYXJhY2nDs24gaW5zdGFuY2lhIGRlIGBBY2Npb25PYmplY3RgOgogICAgICAgICAgICBBY2Npb25PYmplY3QgZGVsID0gbmV3IEFjY2lvbk9iamVjdChPYnRlbmVyU3RyaW5nKTsKICAgICAgICAgICAgCiAgICAgICAgICAgIG9iamVjdCByZXN1bHRhZG8gPSBkZWwoKTsKICAgICAgICAgICAgCiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCJDb250ZW5pZG8gZGUgYHJlc3VsdGFkb2A6IHswfSIsIHJlc3VsdGFkbyk7CiAgICAgICAgfQogICAgICAgIAogICAgICAgIHB1YmxpYyBzdGF0aWMgc3RyaW5nIE9idGVuZXJTdHJpbmcoKQogICAgICAgIHsKICAgICAgICAgICAgcmV0dXJuICJCbG9nIHhDU3ciOwogICAgICAgIH0KICAgIH0KfQ==