public static MethodCallBuilder Chain( this MethodCallBuilder builder, Action <MethodCallBuilder> configure) { var chainedMethod = MethodCallBuilder.Inline(); configure(chainedMethod); builder.AddChainedCode(chainedMethod); return(builder); }