try. {. CustomModelt = obj is CustomModel;. } catch. {. //轉型失敗. } ... (Net Core 2.0)效能上Parse > TryParse > Convert。 測試程式碼:. C#.
確定! 回上一頁