Пример #1
0
        public string PayloadToString <Data1, T>() where Data1 : IEnumerable <T>, Data
        {
            Data1  enumPayload = (Data1)payload;
            string content     = enumPayload.ElementAt(0).ToString();

            if (enumPayload.Count() > 1)
            {
                for (int i = 1; i < enumPayload.Count(); i++)
                {
                    content += ", " + enumPayload.ElementAt(i).ToString();
                }
            }
            return(content);
        }