Join Anton Delsink for an in-depth discussion in this video Implement Content.GetFeed, part of Object Oriented Programming with C#.
- [Instructor] Now that we are ready…to look for the content by the users specified,…we need to interrogate the collection on line eight,…PublishedPosts, to get a subset of the published posts…filtered by the list of users specified…from the follows variable, and then combine all of the posts…by all of those users into a collection that we can return.…The IEnumerable of post on line 23.…So on line 25, we'll start writing some link,…let's just make sure we have the name space imported.…
So at the top, copy and paste line one,…and add system.link so that on line 26,…we can say a first variable equals…from the elements of PublishedPosts,…and dictionaries have elements of type key value pairs,…so I'll say kvp in PublishedPosts.…And so kvp is the individual element…of the PublishedPosts collection,…so it has a key value pair.…
So I'll filter by kvp.key, being in the collection…of users being provided as a parameter.…And so this will look a little bit odd…if you're new to this.…I'll say follows.Contains that key.…So we want to select content,…
- Abstract classes
- Processing text with StreamReader
- IEnumerable and yield return
- Windows Forms controls
- Windows Forms with and without the designer
- Adding, organizing, and testing forms
- Creating classes
Skill Level Intermediate
What you should know1m 10s
1. Theory vs. Practice
2. Examples from .NET
3. Examples from Windows UI
4. Examples from Board Games
5. Examples from the Web
Next steps1m 13s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.