Пример #1
0
        public IEnumerable <TwitterEntity> Coalesce()
        {
            var entities = new List <TwitterEntity>(Mentions.Count() + HashTags.Count() + Urls.Count() + Media.Count());

            entities.AddRange(Mentions.Cast <TwitterEntity>());
            entities.AddRange(HashTags.Cast <TwitterEntity>());
            entities.AddRange(Urls.Cast <TwitterEntity>());
            entities.AddRange(Media.Cast <TwitterEntity>());
            entities.Sort();

            return(entities);
        }
Пример #2
0
        public IEnumerable <TwitterEntity> Coalesce()
        {
#if !WINDOWS_PHONE
            var entities = new List <TwitterEntity>(Mentions.Count() + HashTags.Count() + Urls.Count());
            entities.AddRange((IEnumerable <TwitterEntity>)Mentions);
            entities.AddRange((IEnumerable <TwitterEntity>)HashTags);
            entities.AddRange((IEnumerable <TwitterEntity>)Urls);
            entities.Sort();
#else
            var entities = new List <TwitterEntity>(Mentions.Count() + HashTags.Count() + Urls.Count());
            entities.AddRange(Mentions.Cast <TwitterEntity>());
            entities.AddRange(HashTags.Cast <TwitterEntity>());
            entities.AddRange(Urls.Cast <TwitterEntity>());
            entities.Sort();
#endif

            return(entities);
        }