Can I assign each value in an array to separate variables in one line in C#? Here\'s an example in Ruby code of what I want:
irb(main):001:0> str1, str2
You can do this in C#
string str1 = "hey", str2 = "now";
or you can be fancy like this
int x, y; int[] arr = new int[] { x = 1, y = 2 };