我有两个枚举,我想从用户输入(字符串)中确定,其中数组是来自用户输入的同名枚举
public enum LengthUnit
{
mm = -3,
cm = -2,
dm = -1,
m = 0,
km = 3
}
public enum NumericUnit
{
b = 2,
o = 8,
d = 10,
h = 16
}
字符串输入=" cm&#34 ;;