Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement