Skip to content

Instantly share code, notes, and snippets.

@anakahala
Last active December 14, 2015 15:19
Show Gist options
  • Select an option

  • Save anakahala/5106536 to your computer and use it in GitHub Desktop.

Select an option

Save anakahala/5106536 to your computer and use it in GitHub Desktop.
[["a"]["b"]["c"]]←こんなstring[][]配列から、["a", "b", "c"]←こんなstring[]配列にする
string[][] array = new string[][] { new string[] { "a" }, new string[] { "b" }, new string[] { "c" } };
string[] select = array.Select(v => v[0]).ToArray();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment