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 ?
If you are using .NET 4.0 you can use one of the generic Tuple classes to return multiple values from a method call. The static Tuple class provides methods to create Tuple objects. So you do not have to define your own return type for the method.
public Tuple Execute()
{
return new Tuple("Hello World", 2);
}