private static TimeScheme NewTimeScheme(string[] y) { TimeScheme x = null; if (y.Length > 1) { x = new TimeScheme(); x.type = y[1].ToEnum<TimeSchemeType>(); if (y.Length > 2) { x.psi = Convert.ToDecimal(y[2]); } } return x; }
private static TimeScheme NewTimeScheme(string[] y) { TimeScheme x = null; if (y.Length > 1) { x = new TimeScheme(); x.type = y[1].ToEnum <TimeSchemeType>(); if (y.Length > 2) { x.psi = Convert.ToDecimal(y[2]); } } return(x); }