C# 判断Object对象的类型 作者:马育民 • 2025-03-22 13:11 • 阅读:10008 # 方法一 ``` var isA = oldObject.GetType() == typeof(Dictionary); ``` # 方法二 ``` var isB = oldObject.GetType().FullName.IndexOf("Dictionary") > 0; ``` # 方法三 ``` var isC = oldObject is Dictionary; ``` 参考: https://www.cnblogs.com/luyj00436/p/14833883.html 原文出处:http://malaoshi.top/show_1GWnznYyyuq.html