what is best way to prepare C# objects in separate methods -



what is best way to prepare C# objects in separate methods -

what improve method utilize object preparation logic:

a) homecoming value

list<users> users = loadusers(); users = prepareusers(users);

b) or void type

list<users> users = loadusers(); prepareusers(users)

are setting properties on existing user objects or creating new ones?

if you're changing existing objects, there's no reason why you'd want homecoming them, it's redundant. worse, it's misleading - client think objects left untouched , you're creating new objects when in fact you're not.

if you're creating new ones, then, need homecoming them.

c#

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -