Convert string to model
问题 Let's say I have this object: public struct Line { public string Name { get; set; } public int Value { get; set; } public string Alias { get; set; } } And I have a file with lines following this syntax: garbagedata|moregarbagedata|Name|garbagedata3|Value|garbagedatamaximums|Alias\n Note that moregarbagedata[x] may or may not exist. A Regex is needed to extract the group-values. What is easiest and most efficient way to turn this file's lines into a collection of Line objects? Order of this