StringIntTuple = "Tuple" schema = { namespace = Seshat.UnitTests, using = Seshat, string = { { listType = "List", toString = "$.ToString()", fromString = "", listCopy = ".Clear(); .InsertRange(0, );", build = false, }, }, ["Tuple"] = { Item1 = string, Item2 = { string, multiplicity = fixed }, { ctor = { Item1, Item2 }, build = false, } }, [StringIntTuple] = { Item1 = int, Item2 = string, { ctor = { Item1, Item2 }, build = false, fromString = "", toString = "", }, }, ["List"] = { { fromStringList = ".Select(x => int.Parse(x)).ToList()", toStringList = "$.ConvertAll(x => x.ToString())", default = "new List()", build = false, listCopy = ".Clear(); .InsertRange(0, .Select(x => new List(x)))", } }, ["Dictionary"] = { { -- Weird map function here is just to force the code to write to a temporary variable. fromStringMap = ".Count > -1 ? .ToDictionary(x => x.Key, x => char.Parse(x.Value)) : null", toStringMap = "$.ToDictionary(x => x.Key, x => x.Value.ToString())", default = "new Dictionary()", build = false, listCopy = "", } }, SampleCompositeType = { element1 = int, element2 = string, { fromString = "", toString = "", } }, DateTime = { { toString = '$.ToString("dd/MM/yyyy HH:mm:ss", System.Globalization.CultureInfo.InvariantCulture) + "Hi!"', fromString = '$.ParseExact(, "dd/MM/yyyy HH:mm:ss", System.Globalization.CultureInfo.InvariantCulture)', build = false, } }, SampleClass = { { listType = "List", toString = "$.ToString()", fromString = "$", listCopy = ".Clear(); .InsertRange(0, );", }, composite = SampleCompositeType, date = DateTime, AandB = StringIntTuple, triples = { int, fixed = 3 }, doubles = { int, fixed = { 2, type = "$[]", toType = "new $[2] { [0], [1] }", fromType = "new $[2] { [0], [1] }", } }, collection = { int, dynamic = 3 }, bakedList = "List", dict = "Dictionary", }, }