public static bool TryParseOpcode(uint value, out MultiValueOpcode op) { if (_ValuesToOpcodes.ContainsKey(value) == false) { op = MultiValueOpcode.INV; return(false); } op = _ValuesToOpcodes[value]; return(true); }
public static bool TryParseOpcode(string name, out MultiValueOpcode op) { if (_NamesToOpcodes.ContainsKey(name) == false) { op = MultiValueOpcode.INV; return(false); } op = _NamesToOpcodes[name]; return(true); }