static Mnemonic ToMnemonic(string value) { if (!ToEnumConverter.TryMnemonic(value, out var mnemonic)) { throw new InvalidOperationException($"Invalid Mnemonic value: '{value}'"); } return(mnemonic); }