2016-03-05から1日間の記事一覧

C#でGenericなSingleton

c#

C#でGenericなSingletonを実装したい。Genericでない基本的なSingletonの実装法についてはMSDNに書いてある。 MSDNに載っていたSingleton実装 Implementing Singleton in C# 最も基本的なのは、以下の様な感じ。 public class Singleton { private static Si…