<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>baba_s</author_name>
  <author_url>https://blog.hatena.ne.jp/baba_s/</author_url>
  <blog_title>コガネブログ</blog_title>
  <blog_url>https://baba-s.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>ソースコード private static bool HasDuplicateElements&lt;T&gt;( this IReadOnlyList&lt;T&gt; self ) { for ( var i = 0; i &lt; self.Count - 1; i++ ) { for ( var j = i + 1; j &lt; self.Count; j++ ) { if ( self[ i ].Equals( self[ j ] ) ) { return true; } } } return false; } 使用例 int[] array1 = { 1, 2, 3, 4, 5 }; // 重複なし int[] a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2023%2F07%2F18%2F143313&quot; title=&quot;【C#】配列やリストの中に重複する要素が存在する場合 true を返す拡張メソッド - コガネブログ&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>2023-07-18 14:33:13</published>
  <title>【C#】配列やリストの中に重複する要素が存在する場合 true を返す拡張メソッド</title>
  <type>rich</type>
  <url>https://baba-s.hatenablog.com/entry/2023/07/18/143313</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
