79656401

Date: 2025-06-06 19:45:00
Score: 0.5
Natty:
Report link

Another option is to use GetMethods and filter using linq:

returnType.GetMethods().Single(mi => mi.Name == "Parse"
    && mi.GetParameters().Count() == 1
    && mi.GetParameters()[0].ParameterType == typeof(string))

In that case you can also check for generic parameters if necessary.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gucu112