The "translation" of your C# class would be:
public class Computing
{
public Computing() {}
public int Compute(int a, int b)
{
return a + b;
}
}
...
Computing comp = new Computing();
Console.WriteLine("{0} + {1} = {2}", 10, 20, comp.Compute(10, 20));
(You don't strictly need a parameterless constructor in C#, one will be defaulted for you if you don't provide any constructors)
But that's "bad" C# - it would be better as:
public static class Computing
{
public static int Compute(int a, int b)
{
return a + b;
}
}
...
Console.WriteLine("{0} + {1} = {2}", 10, 20, Computing.Compute(10, 20));