Geeks With Blogs

News

Anirudha gupta January 2018 Entries
C# Local Function
  static void Main(string[] args)
        {
            int Sum(int x, int y)
            {
                return x + y;
            }

            int res = 5 + 2;
            Console.WriteLine(res);
        }


This is a 5 line code to show how Local method works in C#.

Posted On Thursday, January 25, 2018 10:18 AM

Copyright © Anirudha | Powered by: GeeksWithBlogs.net