These are chat archives for dennisdoomen/CSharpGuidelines

25th
Jun 2015
Yves Goergen
@ygoe
Jun 25 2015 20:07
Ehm, wait a minute, wouldn't you detect such inappropriate return type from the method definition? When it should return an int value it surely can't return a complex internal type. You only need to check the method definition once whereas you'd have to analyse and verify its usage many times. And should the return type be something as unspecific as object you'd have another reason to complain, right?