The size of a Get method
问题 Are there any guidelines or general consensus towards the size of a 'Get' in terms of lines of code? I have a Get method on a member that has quite easily grown to 30 lines of code here. I'm not sure at what point this should be pulled out into a method. But then I'd only be calling it something like GetMyString and assigning the value to another member and calling it in the constructor anyway. Is it ever worth doing this? Is this too subjective for SO? 回答1: dcastro's answer is good but could