<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>C#で宣言済みの配列のサイズを変更するためにはArray.Resizeを使用します。末尾に要素を追加する場合、Resizeで+1した後最後にデータを追加します。 実装コードは以下の通りです。 // 100 → 200へ配列のサイズを変更 int[] array = new int[100]; Array.Resize(ref array, 200/*新しいサイズ*/); // 201件目に要素を追加 Array.Resize(ref array, array.Length + 1); array[Length -1] = 999; このように簡単に実現できます。 で、Array.Resizeの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2018%2F10%2F12%2F011802&quot; title=&quot;C#で配列のサイズ変更や要素を末尾に追加する - PG日誌&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>https://cdn-ak.f.st-hatena.com/images/fotolife/T/Takachan/20180519/20180519205535.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-10-12 01:18:02</published>
  <title>C#で配列のサイズ変更や要素を末尾に追加する</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2018/10/12/011802</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
