public Iprob Create( ImmutableList <IprobParameterElement> value) { Iprob parameter = null; try { parameter = new prob( value); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(parameter); }
private void getAllPro() { for (int i=0; i<lotteryJson.Count; i++) { List<prob> ProT=new List<prob>(); for (int j=0; j<lotteryJson[i]["data"].Count; j++) { prob goData=new prob(); goData.code=lotteryJson [i]["data"][j]["code"].ToString(); goData.pro=float.Parse(lotteryJson [i]["data"][j]["pro"].ToString()); ProT.Add(goData); } switch(int.Parse(lotteryJson [i] ["type"].ToString())){ case 1:normalPro=ProT;break; case 2:bestPro=ProT;break; default:break; } } }