Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- using System.Reflection;
- namespace Recetas.Cap03
- {
- public sealed class VersionDynamic
- {
- public void ImprimirMensaje(string param1, int param2, char param3)
- {
- Console.WriteLine ("\nValores de `param1`: {0}; `param2`: {1}; `param3`: {2}",
- param1, param2.ToString(), param3.ToString());
- }
- public static void Main()
- {
- // Declaración de variable `dynamic`:
- dynamic dyn;
- // Creación objeto `VersionDynamic`:
- dyn = new VersionDynamic();
- // Invocación del método `ImprimirMensaje`:
- dyn.ImprimirMensaje("Blog xCSw", 235, '#');
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement