【发布时间】:2019-04-16 17:12:14
【问题描述】:
我的函数获取枚举类型作为我需要验证的字符串。
为什么 parsedType(s) 在这里为空?
var parsedType1 = Type.GetType("System.Windows.TextAlignment.Left");
var parsedType2 = Type.GetType("System.Windows.TextAlignment");
虽然这行得通?
var parsedType3 = Type.GetType("System.String");
【问题讨论】: