예제 #1
0
파일: BaseModel.cs 프로젝트: zhizhen/thewar
    private static Dictionary <string, object> GetConfigVoDic <T>() where T : new()
    {
        var data = ConfigTool.GetInstance().AnalyseBinaryConfig <T> ();

        if (data == null)
        {
            throw new InvalidOperationException(string.Format("{0} not exist", typeof(T).Name));
        }
        else
        {
            return(data);
        }
    }