Exemple #1
0
        public static bool TryParseOpcode(uint value, out MultiValueOpcode op)
        {
            if (_ValuesToOpcodes.ContainsKey(value) == false)
            {
                op = MultiValueOpcode.INV;
                return(false);
            }

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

            op = _NamesToOpcodes[name];
            return(true);
        }