## 方法
1. objectType.GetInterfaces().Contains(interfaceType)
2. interfaceType.IsAssignableFrom(objectType)
3. objectType.IsAssignableTo(interfaceType)
4. objectType.GetInterface(nameof(interface)) != null
## 參考來源
https://www.facebook.com/groups/1706638306295947/?multi_permalinks=3338835626409532
沒有留言:
張貼留言