@@ -27,23 +27,49 @@ public interface IMethodBodyBuilderStage3<TReturnType>
2727
2828public interface IMethodBodyBuilderStage4ReturnVoidNoArg
2929{
30+ IMethodBodyBuilderStage5ReturnVoidNoArgWithConstants < TConstants > WithCompileTimeConstants < TConstants > ( Func < TConstants > compileTimeConstantsFactory ) ;
3031 IMethodBodyGenerator UseProvidedBody ( Action body ) ;
3132}
3233
34+ public interface IMethodBodyBuilderStage5ReturnVoidNoArgWithConstants < TConstants >
35+ {
36+ IMethodBodyGenerator UseProvidedBody ( Action < TConstants > body ) ;
37+ }
38+
3339public interface IMethodBodyBuilderStage4NoArg < TReturnType >
3440{
41+ IMethodBodyBuilderStage5NoArgWithConstants < TReturnType , TConstants > WithCompileTimeConstants < TConstants > ( Func < TConstants > compileTimeConstantsFactory ) ;
3542 IMethodBodyGenerator UseProvidedBody ( Func < TReturnType > body ) ;
3643 IMethodBodyGenerator BodyReturningConstant ( Func < TReturnType > constantValueFactory ) ;
3744}
3845
46+ public interface IMethodBodyBuilderStage5NoArgWithConstants < TReturnType , TConstants >
47+ {
48+ IMethodBodyGenerator UseProvidedBody ( Func < TConstants , TReturnType > body ) ;
49+ IMethodBodyGenerator BodyReturningConstant ( Func < TConstants , TReturnType > constantValueFactory ) ;
50+ }
51+
3952public interface IMethodBodyBuilderStage4ReturnVoid < TParam1 >
4053{
54+ IMethodBodyBuilderStage5ReturnVoidWithConstants < TParam1 , TConstants > WithCompileTimeConstants < TConstants > ( Func < TConstants > compileTimeConstantsFactory ) ;
4155 IMethodBodyGenerator UseProvidedBody ( Action < TParam1 > body ) ;
4256}
4357
58+ public interface IMethodBodyBuilderStage5ReturnVoidWithConstants < TParam1 , TConstants >
59+ {
60+ IMethodBodyGenerator UseProvidedBody ( Action < TConstants , TParam1 > body ) ;
61+ }
62+
4463public interface IMethodBodyBuilderStage4 < TParam1 , in TReturnType >
4564{
65+ IMethodBodyBuilderStage5WithConstants < TParam1 , TReturnType , TConstants > WithCompileTimeConstants < TConstants > ( Func < TConstants > compileTimeConstantsFactory ) ;
66+
4667 IMethodBodyGenerator UseProvidedBody ( Func < TParam1 , TReturnType > body ) ;
4768 IMethodBodyGenerator BodyReturningConstant ( Func < TReturnType > constantValueFactory ) ;
48- IMethodBodyGeneratorSwitchBody < TParam1 , TReturnType > BodyWithSwitchStatement ( ) ;
69+ }
70+
71+ public interface IMethodBodyBuilderStage5WithConstants < TParam1 , in TReturnType , TConstants >
72+ {
73+ IMethodBodyGenerator UseProvidedBody ( Func < TConstants , TParam1 , TReturnType > body ) ;
74+ IMethodBodyGenerator BodyReturningConstant ( Func < TConstants , TReturnType > constantValueFactory ) ;
4975}
0 commit comments