WCF 重载

    [ServiceContract]  
    public interface IUser  
    {  

      [OperationContract(Name="ByUseId")] 
     User GetUser(int id)
;
    [OperationContract(Name
="ByUserEmail")]
     User GetUser(string email)
;
 } 

 

posted @ 2013-07-04 08:42  划破黑夜  阅读(222)  评论(0编辑  收藏  举报