首页 新闻 会员 周边

最后一行是什么意思啊public static List<T> GetSyncDataWithUpdate<T>(string syncId) where T : BaiDu.Dawn.Core.Dto.BaseDto;

0
[已解决问题] 解决于 2017-01-09 13:03

namespace BaiDu.Nhds.SvcProxy.Utils
{
public static class SyncHelper
{
public static List<T> GetSyncData<T>(string syncId) where T : Neusoft.Dawn.Core.Dto.BaseDto;
public static DateTime GetSyncDataTime<T>(string syncId);
public static List<T> GetSyncDataWithExpired<T>(string syncId, int seconds) where T : Neusoft.Dawn.Core.Dto.BaseDto;
public static List<T> GetSyncDataWithUpdate<T>(string syncId) where T : Neusoft.Dawn.Core.Dto.BaseDto;
}
}

c#
糯米好吃的主页 糯米好吃 | 初学一级 | 园豆:64
提问于:2017-01-09 11:08
< >
分享
最佳答案
0

where T : Neusoft.Dawn.Core.Dto.BaseDto指定T的类型必须是Neusoft.Dawn.Core.Dto.BaseDto

// 等价于下面的写法:
public static List<Neusoft.Dawn.Core.Dto.BaseDto> GetSyncDataWithUpdate(string syncId)



奖励园豆:5
JoiWilliam | 小虾三级 |园豆:546 | 2017-01-09 11:56

   想问一下  这是哪方面的知识点呢  我想系统的看一下

糯米好吃 | 园豆:64 (初学一级) | 2017-01-09 13:02
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册