Function with multiple return values
suggest changeRemarks
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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents