Hii
I have method in C#, I have to return multiple values from that method with out using collections like arrays. Is there any reliable way ?
Well, you could use:
out
I.e.:
class MyValues { public string Val1 { get; set; } public int Val2 {get; set; } } public MyValues ReturnMyValues();
or
public void ReturnMyValues(out string Val1, out int Val2);