<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sonoichi-60</author_name>
  <author_url>https://blog.hatena.ne.jp/sonoichi-60/</author_url>
  <blog_title>そのいちblog</blog_title>
  <blog_url>https://sonoichi-blog.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>C#</anon>
    <anon>LinQ</anon>
  </categories>
  <description>2次元配列でLinQを使ったら1次元配列扱いになって不便だったので、LinQでも(2次元座標が)使える2次元配列のクラスを作りました。 実装 使い方 参考記事 実装 使い方 LinQで2次元配列の要素の2次元座標を取得できます。 以下は使用例です。 // 幅10, 高さ10の二次元配列を作成 var width = 10; var height = 10; var ary = new Array2D&lt;int&gt;( width, height ); // 各要素に0~2のランダムな値を代入 for( int y = 0; y &lt; height; y++ ) { for( int x = 0; x …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsonoichi-blog.hatenablog.com%2Fentry%2F2017%2F12%2F28%2F095057&quot; title=&quot;LinQでも使える2次元配列 - そのいちblog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-12-28 09:50:57</published>
  <title>LinQでも使える2次元配列</title>
  <type>rich</type>
  <url>https://sonoichi-blog.hatenablog.com/entry/2017/12/28/095057</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
