<?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>
    <anon>.NET</anon>
    <anon>.NET Core</anon>
    <anon>.NET Framework</anon>
    <anon>Unity</anon>
  </categories>
  <description>あるリストに入ってる1つの要素の順序(位置)を変更します。 例えば、5番目の要素を3番目に移動したいなどの状況想定します。List クラスを使いますがこのようなメソッドは存在しません。 実装例 順序変更を List クラスの拡張メソッドとして実装したいと思います。 要素番号を指定して位置を変更する方法と、条件に一致した要素を指定した位置に変更する2種類を実装します。 using System; using System.Collections.Generic; public static class ListExtension { /// &lt;summary&gt; /// 指定した位置の要素を指定し…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2017%2F09%2F15%2F083300&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/20170112/20170112223259.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-09-15 08:33:00</published>
  <title>C#でリストの特定の要素の位置を変更する</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2017/09/15/083300</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
