Function with multiple return values

suggest change

Remarks

C# has no special form whose only purpose is to return several values. The workarounds below cover that need.

Returning two or more values is worth a second look, because it often means the method has more than one responsibility. See the Single Responsibility Principle.

Treat a method that needs two or more results as a prompt to reconsider the design.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents