BLL/BLLBase.cs

(完整代码) 1015B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

/**
* Copyright (c) 2013-2020 0. All rights reserved.
*┌──────────────────────────────────┐
*│  作者QQ:599906561  email: 251908419@qq.com
*│  QQ群: 2068911
*│ 版权所有:acseo网版权所有 http://www.0 
*└──────────────────────────────────┘
*/

namespace Tc.BLL
{
    public class BLLBase<T> where T : BLLBase<T>, new()
    {
        private static T s_Instance = null;

        /// <summary>
        /// 获取当前业务逻辑对象的实例
        /// </summary>
        public static T Instance
        {
            get
            {
                if (s_Instance == null)
                {
                    s_Instance = new T();
                }
                return s_Instance;
            }
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。