In C# how does one implement the ability to chain methods in one\'s custom classes so one can write something like this:
myclass.DoSomething().DosomethingElse(x)
For a mutable class, something like
class MyClass { public MyClass DoSomething() { .... return this; } }