Can you do something like this in C#
var GetSomething()
{
var x = new { a = "b", i = 1 };
return x;
}
Or maybe is there any alternative that I can do? About having a type for the return yes, I know about that. I was looking for something more generic 😀
I managed to return anonymous type. I returned it as an object and then cast it. Thanks for anyone who answered 😀