示例#1
0
文件: Program.cs 项目: dimon3d/TMPS
        static void Main(string[] args)
        {
            TheBell s1 = TheBell.Instance();
            TheBell s2 = TheBell.Instance();

            Console.WriteLine(s1.GetHashCode());
            Console.WriteLine(s2.GetHashCode());

            Console.ReadKey();
        }
示例#2
0
        public static TheBell Instance()
        {
            if (bellConnection == null)
            {
                bellConnection = new TheBell();
            }


            return(bellConnection);
        }