I have a class that used to have a string return type. Now I find I need to return more than a string. I was thinking to return something like below:
public
You can make a struct (or class) for this.
public struct IdAndName { public int Id; public string Name; public IdAndName(int id, string name) { ID = id; Name = name; } }
You could also use a Tuple, (but that's not recommended as the properties aren't named.