ElectionsMandateCalculator.Helpers.InputParsers.ParsePartyFromString C# (CSharp) Method

ParsePartyFromString() public static method

Parse Parties from Parties.txt ex: 1;“Партия 1“ 2;“Коалиция 1“ 1000;“Инициативен комитет в МИР 1“ 1001;“Инициативен комитет в МИР 2“
public static ParsePartyFromString ( string recordLine ) : Party
recordLine string
return ElectionsMandateCalculator.Models.Party
        public static Party ParsePartyFromString(string recordLine)
        {
            if (string.IsNullOrEmpty(recordLine))
            {
                throw new ArgumentNullException();
            }

            var propValues = recordLine.Split(SEPARATOR);

            var item = new Party(
                                id: int.Parse(propValues[0]),
                                name: propValues[1]
                           );

            return item;
        }