Geeks With Blogs

News

Anirudha gupta
  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 | Back to top


Comments on this post: C# Local Function

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Anirudha | Powered by: GeeksWithBlogs.net