C# Static Methods Calls : <p>I'm trying to create a static method that can be used in chaining, but the available options depend of the previous method within the chain</p>

<p>For example
MethodXX will only be an option if MethodA() was called.</p>

<p>something.MethodA().MethodXX();</p>

<p>If MethodB was called, then the available option will be MethodYY</p>

<p>something.MethodB().MethodYY();</p>

<p>Thank you</p>
