public uint?StringToValue(string s) { foreach (uint k in _values.Keys) { if (_values[k] == s) { return(k); } } if (_inherit != null) { InitBaseEnum(); return(_baseEnum.StringToValue(s)); } return(null); }
public override IConvertible EvaluateSymbol(string symbol) { if (!_def.GlobalMask) { uint?value = _def.StringToValue(symbol); if (value.HasValue) { if (_set) { return(1 << (int)value.Value); } return(value.Value); } } return(base.EvaluateSymbol(symbol)); }