Advertisement
Fhernd

Contravarianza.cs

Jul 26th, 2014
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Articulos.Cap04
  4. {
  5.     internal delegate void AccionSobreString(string s);
  6.    
  7.     internal class Aplicacion
  8.     {
  9.         public static void Main()
  10.         {
  11.             AccionSobreString ass = MetodoParamObject;
  12.            
  13.             ass("Blog xCSw");
  14.         }
  15.        
  16.         static void MetodoParamObject(object paramObject)
  17.         {
  18.             Console.WriteLine(paramObject);
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement