<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zecl</author_name>
  <author_url>https://blog.hatena.ne.jp/zecl/</author_url>
  <blog_title>Bug Catharsis</blog_title>
  <blog_url>https://zecl.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>デザインパターン</anon>
    <anon>C#2.0</anon>
    <anon>C#3.0</anon>
    <anon>VB.NET</anon>
  </categories>
  <description>以前書いた、デザインパターン第７回「Singletonパターン」その１はこちらです。 結城先生のホームページに、Singletonのサブクラス化という記事がある。 Singletonの考え方にもいろいろあるけれど、その中の考え方のひとつ、 「(2) クラスごとに管理 ―― クラスごとに唯一のインスタンスを作る」ってやつが個人的に有用だと思った。 コンバット越前の如く、「せっかくなので俺はC#を選ぶゼ。」というわけでC#でジェネリックで書いてみた。 以下、クラスごとに唯一のインスタンスを作る抽象Singletonクラス using System; using System.Collections…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzecl.hatenablog.com%2Fentry%2F20080229%2Fp2&quot; title=&quot;デザインパターン第１４回「Singletonパターン」その２ - Bug Catharsis&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>2008-02-29 00:00:01</published>
  <title>デザインパターン第１４回「Singletonパターン」その２</title>
  <type>rich</type>
  <url>https://zecl.hatenablog.com/entry/20080229/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
