using System;
using System.Collections.Generic;
public class SingletonObject
{
private static T m_Singlrton;
public static T GetIns()
{
if (m_Singlrton == null)
{
m_Singlrton = (T)Activator.CreateInstance(typeof(T));
}
return m_Singlrton;
}
}
单键个类
最新推荐文章于 2024-03-08 17:17:57 发布