Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- //PrintSomething();
- //Sum Method Normal
- //int a = 5;
- //int b = 6;
- //Console.WriteLine(Sum(a, b));
- //int result = Sum(a, b);
- //Console.WriteLine(result);
- //More than one value
- //int a;
- //int b;
- //MoreThanValue(out a, out b);
- //Console.WriteLine(a);
- //Console.WriteLine(b);
- //More Than One value using ref
- //int i = 5;
- //int b = 1;
- //MoreThanOneRef(ref i, ref b);
- //Console.WriteLine(i);
- }
- //static void PrintSomething()
- //{
- // //Console.WriteLine("This method was called");
- //}
- //Sum Method Body
- //static int Sum(int a, int b)
- //{
- // return a + b;
- //}
- //static void MoreThanValue(out int a, out int b)
- //{
- // a = 5;
- // b = a + 5;
- //}
- //static void MoreThanOneRef(ref int i, ref int b)
- //{
- // i = b + 1;
- //}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment