public static bool Parse(string sDebug, string sVal, ref Sys_Error o) { if (sVal == "" || sVal == "0" || sVal == "NULL" || sVal == "null") { return(true); } if (Char.IsNumber(sVal[0])) { o = CSV_Sys_Error.Find(int.Parse(sVal)); //nEXCEL.nUtil.jCSV.jCHECK_null(o, "PostParse Error ",sDebug); } else { o = CSV_Sys_Error.FindBy_name(sVal); //nEXCEL.nUtil.jCSV.jCHECK_null(o, "PostParse Error ",sDebug); } return(o != null); }
public static bool Parse(string sDebug, string sVal, ref List <Sys_Error> oList) { oList.Clear(); if (sVal == "" || sVal == "0" || sVal == "NULL" || sVal == "null") { return(true); } bool isFind = false; List <Sys_Error> sysList = (List <Sys_Error>)oList; foreach (string s in sVal.Split(';')) { Sys_Error o = null; if (Char.IsNumber(s[0])) { o = CSV_Sys_Error.Find(int.Parse(s)); //nEXCEL.nUtil.jCSV.jCHECK_null(o, "PostParse_List Error " + sDebug,s); sysList.Add(o); } else { o = CSV_Sys_Error.FindBy_name(s); //nEXCEL.nUtil.jCSV.jCHECK_null(o, "PostParse_List Error " + sDebug,s); sysList.Add(o); } if (o != null) { isFind = true; } else { throw new System.Exception(sVal + " -> ((" + s + ")) IS NOT FOUND !! : " + sDebug); } } return(isFind); }