示例#1
0
        public ListIcon(List list)
        {
            if (list == null)
            {
                throw new ArgumentNullException(nameof(list));
            }

            _list = list;

            if (!string.IsNullOrEmpty(_list.IconPath))
            {
                var segments    = ConvertUtilities.SplitToList <string>(_list.IconPath, '/');
                var lastsegment = segments.LastOrDefault();
                if (lastsegment != null)
                {
                    FileName = lastsegment;
                }
            }
        }