Example #1
0
    public string GetStringOtherData(string key)
    {
        GuaJiJiChuSheZhi guaJiJiChuSheZhi = DataReader <GuaJiJiChuSheZhi> .Get(key);

        if (guaJiJiChuSheZhi != null)
        {
            return(guaJiJiChuSheZhi.value);
        }
        return(string.Empty);
    }
Example #2
0
    public int GetIntOtherData(string key)
    {
        float            num = 0f;
        GuaJiJiChuSheZhi guaJiJiChuSheZhi = DataReader <GuaJiJiChuSheZhi> .Get(key);

        if (guaJiJiChuSheZhi != null && float.TryParse(guaJiJiChuSheZhi.value, ref num))
        {
            return((int)num);
        }
        return(0);
    }