I\'ll give an example, so you can better understand what i mean:
public class Base { public Base Common() { return this; } } pub
You could make Base generic and use the Curiously Repeating Template Pattern:
Base
public class Base where T : Base { public T Common() { return (T)this; } } public class XBase : Base { public XBase XMethod() { return this; } }
Then you can just use:
var a = new XBase().Common().XMethod();