From 22a61601f852e71b79e62f8f1c858ecc24d22fff Mon Sep 17 00:00:00 2001 From: Sven Gestegard Robertz <sven.robertz@cs.lth.se> Date: Fri, 30 Jan 2015 16:15:46 +0100 Subject: [PATCH] small fix in user_types c# example --- examples/user_types/ExampleDecoder.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/user_types/ExampleDecoder.cs b/examples/user_types/ExampleDecoder.cs index 2b4ef09..7f22a9e 100644 --- a/examples/user_types/ExampleDecoder.cs +++ b/examples/user_types/ExampleDecoder.cs @@ -54,9 +54,14 @@ namespace user_types Console.WriteLine("b: "+d.b); } - public void handle(int d) + void theFirstInt.Handler.handle(int d) { - Console.WriteLine("Got int: "+d); + Console.WriteLine("Got theFirstInt: "+d); + } + + void theSecondInt.Handler.handle(int d) + { + Console.WriteLine("Got theSecondInt: "+d); } static void Main(string[] args) -- GitLab