[ServiceContract ] public interface ITest { [OperationContract(Name="Method1")] string TestMethod(int para1,int para2); //Initail method [OperationContract(Name = "Method2")] string TestMethod(string para1, string para2); //Overloading on the basis of type of parameters. [OperationContract(Name = "Method3")] string TestMethod(int para1, string para2); //Overloading on the basis of an order of parameters. [OperationContract(Name = "Method4")] string TestMethod(int para1, string para2,double para3); //Overloading on the basis of the numbers of parameters }
ITest
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)