WCF 重载

    [ServiceContract]  
    public interface IUser  
    {  

      [OperationContract(Name="ByUseId")] 
     User GetUser(int id)
;
    [OperationContract(Name
="ByUserEmail")]
     User GetUser(string email)
;
 } 
原文地址:https://www.cnblogs.com/wugang/p/3170822.html