<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>C#には列挙(GetEnumeratorメソッド)だけ対応するIEnumerable&lt;T&gt;インターフェイスとCountプロパティにも対応するIReadOnlyCollection&lt;T&gt;インターフェイスが存在します。個数表示等でCount()LINQメソッドを使う場合、結果を捨てるIReadOnlyCollection&lt;T&gt;を実装した方が少しだけ早くなるかもしれません。 注意点はIReadOnlyCollection&lt;T&gt;.Countは手動でCount()LINQメソッドと置き換える必要があることです。ICollection&lt;T&gt;インターフェイス等を実装していればCount()LINQメソッド内…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2026%2F08%2F30%2F191820&quot; title=&quot;C# IEnumerable&amp;lt;T&amp;gt;の個数カウントはIReadOnlyCollection&amp;lt;T&amp;gt;を実装したら少し早いかもしれない - potisanのプログラミングメモ&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>2026-08-30 19:18:20</published>
  <title>C# IEnumerable&lt;T&gt;の個数カウントはIReadOnlyCollection&lt;T&gt;を実装したら少し早いかもしれない</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2026/08/30/191820</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
