Returning KeyValuePair for use?
Hi Guys. I need help with a very basic thing. I'm generating a key and a value with GenerateTwoValues() and return-ing them with
return new KeyValuePair<int, ulong>(keyone, valueone);​

Now my question is... how do I use them? How do I seperate those Key and Value from it? For exampe GenerateTwoValues().Key obviously doesn't work.. thanks. :)
assign it to variable and then use
How? I tried

var test = GenerateTwoValues();
int inttest = test.Key;
ulong ulongtest = test.Value;

And I get: "error CS0428: Cannot convert method group `Value' to non-delegate type `ulong'. Consider using parentheses to invoke the method"

Merged post

Got it working. So solved.