「シングルトンの実装」の編集履歴(バックアップ)一覧はこちら

シングルトンの実装 - (2008/04/14 (月) 09:14:33) の最新版との変更点

追加された行は緑色になります。

削除された行は赤色になります。

// 現在のページ名 *&this_page()  **概要 シングルトンパターンでのユーザー定義クラスの作り方。 ***参照 -[[Microsoft patterns & practices Patterns - C# でのシングルトンの実装>>http://www.microsoft.com/japan/msdn/practices/type/Patterns/enterprise/ImpSingletonInCsharp.aspx]] **前提条件 -[[新しいプロジェクトの作成]] **手順 手順というか、参照サイトのコード丸写し。 #highlight(){{ using System; public class Singleton { private static Singleton instance; private Singleton() {} public static Singleton Instance { get { if (instance == null) { instance = new Singleton(); } return instance; } } } }}
// 現在のページ名 *&this_page()  **概要 シングルトンパターンでのユーザー定義クラスの作り方。 ***参照 -[[Microsoft patterns & practices Patterns - C# でのシングルトンの実装>>http://www.microsoft.com/japan/msdn/practices/type/Patterns/enterprise/ImpSingletonInCsharp.aspx]] **前提条件 -[[新しいプロジェクトの作成]] **手順 手順というか、参照サイトのコード丸写し。 #highlight(csharp){{ using System; public class Singleton { private static Singleton instance; private Singleton() {} public static Singleton Instance { get { if (instance == null) { instance = new Singleton(); } return instance; } } } }}

表示オプション

横に並べて表示:
変化行の前後のみ表示:
記事メニュー
目安箱バナー