Skip to content

Commit

Permalink
Merge pull request #112 from steinarv12/master
Browse files Browse the repository at this point in the history
Added a descriptive link and fixed method types.
  • Loading branch information
danielbsig committed Dec 22, 2014
2 parents 2ff93a5 + d5d1f6f commit d6e39bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Week03/9. LINQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,25 +87,25 @@ Please note that these function are often used with the orderby keyword

Examples of usage:
```c#
public Student getFirstFiveStudents(){
public IEnumerable<Student> getFirstFiveStudents(){
return (from s in _students.All()
orderby s.Name
select s).Take(5);
}

public Student getAllButFirstFive(){
public IEnumerable<Student> getAllButFirstFive(){
return (from s in _students.All()
orderby s.Name
select s).Skip(5);
}

public Student getAllStudentsOverFive(){
public IEnumerable<Student> getAllStudentsOverFive(){
return (from s in _students.All()
orderby s.Grade desc
select s).TakeWhile(s.Grade >= 5);
}

public Student getAllStudentsBelowFive(){
public IEnumerable<Student> getAllStudentsBelowFive(){
return (from s in _students.All()
orderby s.Grade desc
select s).SkipWhile(s.Grade >= 5);
Expand Down
1 change: 1 addition & 0 deletions Week06/Security.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,5 @@ This wiki link compares OAuth and OpenID and also has a simple picture which exp
* [Core OpenID Connect functionality specification ](http://openid.net/specs/openid-connect-core-1_0.html)
* [Thinktecture IdentityServer v3](https://github.com/thinktecture/Thinktecture.IdentityServer.v3)
* [Thinktecture IdentityServer v3 Samples](https://github.com/thinktecture/Thinktecture.IdentityServer.v3.Samples)
* [What is the difference between OpenID and OAuth?](https://stackoverflow.com/questions/1087031/whats-the-difference-between-openid-and-oauth)

0 comments on commit d6e39bb

Please sign in to comment.