Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Articulos.Cap04
- {
- public delegate void Delegado1();
- public delegate void Delegado2();
- public class Aplicacion
- {
- public static void Main()
- {
- Delegado1 d1 = Metodo;
- // Generará el error CS0029:
- // Cannot implicitly convert type...:
- Delegado2 d2 = d1;
- }
- public static void Metodo()
- {
- Console.WriteLine("Metodo");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement