C# - Reference Example




using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace reference
{
class Program
{
static void Main(string[] args)
{
int i = 5;
Method(ref i);
Console.WriteLine(i.ToString());
Console.ReadLine();
}

static void Method(ref int j)
{
j = j + 7;
}
}
}

Comments

Popular posts from this blog

Network Security: LAN manager authentication level

Cisco AnyConnect Secure Mobility Client - VPN service not available. The VPN agent service is not responding