public static MultiTable ParseMultiTable(string value) { List<string> splitValues = new List<string>(value.Split(';')); if (splitValues.Count < 2) { throw new Exception("ParseMultiTable error:" + value); } MultiTable multiTable = new MultiTable(); multiTable.TableName = splitValues[0]; multiTable.ID = splitValues[1]; return multiTable; }
public static MultiTable ParseMultiTable(string value) { List <string> splitValues = new List <string>(value.Split(';')); if (splitValues.Count < 2) { throw new Exception("ParseMultiTable error:" + value); } MultiTable multiTable = new MultiTable(); multiTable.TableName = splitValues[0]; multiTable.ID = splitValues[1]; return(multiTable); }
public static string GetWriteStr(MultiTable value) { return(value.TableName + ";" + value.ID); }
public static string GetWriteStr(MultiTable value) { return value.TableName + ";" + value.ID; }