Thursday, July 27, 2017

return this; (in C#)

In a method, at its end, this will return the instance of the class as an object! This comes up in:

  1. prepping some not so anemic state
  2. turning around and using the state

No comments:

Post a Comment