2021年12月22日 星期三

ValueTuple default 判斷方式

請勿直接用 xxx == default
改用以下方式
xxx == default(ValueTuple<int, string>)

沒有留言:

自訂權限驗證機制

// 使用 filter [Route("api/[controller]")] [ApiController] [Authorize] [TypeFilter(typeof(CustomAsyncAuthorizationFilter))] public c...