4
Answers

change company

Pranav Shah

Pranav Shah

10y
769
1
Hi
I am windows phone developer since 2 year in gujarat ahmedabad.
till now i work on 5-6 Application in windows phone
but now days in my company nothing work in windows phone
and after 4 month my bond duration will be complete.

one more thing i have basic knowledge about .NET MVC and JS,jquery

so should i change company and technology
from windows phone to .NET for my bright future...


please suggest me to make us my career bright.
Answers (4)
0
Vulpes

Vulpes

NA 98.3k 1.5m 12y
I've modeled what you've described and come up with this which works fine (.NET 4.0) :

using System;
using System.Threading.Tasks;

class Test
{
   static void Main()
   {
      int result = FuncA(11);
      Console.WriteLine(result); // 17
      Console.ReadKey();
   }

   static int FuncA(int i)
   {
      i++;
      Task<int> task = Task.Factory.StartNew<int>(() => FuncB(i));
      int j = task.Result;
      return j + 3;
   }

   static int FuncB(int i)
   {
      return i + 2; 
   }
}

So, what else are you wanting to do?

Are you just wanting to do it in a different way so it will run on .NET 3.5 say?