Click here to Skip to main content
15,896,405 members
Articles / Programming Languages / C#

A Pinch Over .NET Remoting

Rate me:
Please Sign up or sign in to vote.
3.29/5 (13 votes)
31 Aug 20049 min read 81.1K   699   30  
This article briefs about .NET Remoting.
using System;
using System.Runtime.Remoting;

public class Client
{
	public static void Main()
	{
		RemotingConfiguration.Configure("Client.exe.config");
      		MathLibrary lib = new MathLibrary();
			Console.WriteLine("Enter Number1:");
			string num1 = Console.ReadLine();
			Console.WriteLine("Enter Number2:");
			string num2 = Console.ReadLine();
      		Console.WriteLine("Sum of Two numbers:{0}",lib.AddTwoNumber(Convert.ToInt16(num1),Convert.ToInt16(num2)).ToString());
			Console.WriteLine("Difference of Two numbers:{0}",lib.SubtractTwoNumber(Convert.ToInt16(num1),Convert.ToInt16(num2)).ToString());
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions