コード例 #1
0
        static void Main(string[] args)
        {
            Singleton singleton = Singleton.Instance;

            singleton.DoWork();

            UserRepository userRepository = UserRepository.Instance;
            object         user           = userRepository.GetUser("login");
        }