As the title says, to simplify things I'm trying to run the code in the title but I get an error saying "Operator '<' cannot be applied to operands of type 'method group' and 'Type'" How can I do this properly?