Код: Выделить всё
AccountNumber#//#PinrCode#//#name#//#PhoneNumber#//#AccountBalance
Код: Выделить всё
public void ConvertLineToClient(String Line, String Separator = "#//#")
{
String[] ClientInfo = Line.Split(new string[] { Separator }, StringSplitOptions.None);
this.AccountNumber = ClientInfo[0];
this.PinCode = ClientInfo[1];
this.Name = ClientInfo[2];
this.PhoneNumber = ClientInfo[3];
this.AccountBalance = Convert.ToInt16(ClientInfo[4]);
}
< /code>
Я хочу понять, что делает < /p>
new string[] { Separator }
А каков другой параметр?
Подробнее здесь: https://stackoverflow.com/questions/765 ... plain-code