<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>am1tanaka</author_name>
  <author_url>https://blog.hatena.ne.jp/am1tanaka/</author_url>
  <blog_title>tanaka's Programming Memo</blog_title>
  <blog_url>https://am1tanaka.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>Unityメモ</anon>
  </categories>
  <description>ジェネリッククラスを継承するための定義の書き方で難儀したのでメモ。 以下、簡易シングルトンをジェネリックで扱いつつ、それを更に解消しつつ、インターフェイスも実装。 public abstract class ResqueActionBase&lt;T&gt; : SimpleSingleton&lt;T&gt; where T : IResqueAction, new() { // ... } whereを継承元側に書くのか。未だにジェネリックは書き方を見慣れていないので難儀する。 インターフェイスを親に実装したら、子側にも実装を書く必要があるので注意。改めて考えれば当たり前だけど忘れてたので・・・。 参考URL d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fam1tanaka.hatenablog.com%2Fentry%2F2022%2F05%2F14%2F133033&quot; title=&quot;ジェネリッククラスの継承。抽象、インターフェイスも添えて - tanaka&amp;#39;s Programming Memo&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>2022-05-14 13:30:33</published>
  <title>ジェネリッククラスの継承。抽象、インターフェイスも添えて</title>
  <type>rich</type>
  <url>https://am1tanaka.hatenablog.com/entry/2022/05/14/133033</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
