Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
I have indexed YouTubeChannelInfo objects which contains many YouTube Channel information.
YouTubeChannelInfo has a Dictionary attribute called 'Playlists' which contains Playlist Title as the key and the ID as the value. Thus, there could be many playlists for a given channel.
public class YouTubeChannelInfo { public string Name { get; set; } // Channel Name public Dictionary<string, string> Playlists { get; set; } // Key - Playlist Title, Value - Playlist ID }
What I need to get is the count of videos for every playlist. Anyway in the Episerver Find Documentation, it does not state about Dictionary attributes.
Below is an example values for the above model,
YouTubeChannelInfoObj1.Playlists --> has --> {"Animation","xxxx"},{"Comedy","xxxx"},{"Thriller","xxxx"}
YouTubeChannelInfoObj2.Playlists --> has --> {"Animation","xxxx"}
YouTubeChannelInfoObj3.Playlists --> has --> {"Animation","xxxx"},{"Thriller","xxxx"}
The output for the above should be,
Animation --> 3
Comedy --> 1
Thriller --> 2
Anyway to get this output?