Код: Выделить всё
internal class IPComparer : IComparer
{
public int Compare(string a, string b)
{
return Enumerable.Zip(a.Split('.'), b.Split('.'),
(x, y) => int.Parse(x).CompareTo(int.Parse(y))).FirstOrDefault(i => i != 0);
}
}
[img]https://i.stack. imgur.com/xSUow.png[/img]
Не могли бы вы рассказать мне, как это сделать?
Спасибо
Подробнее здесь: https://stackoverflow.com/questions/782 ... a-listview
Мобильная версия