/// <inheritdoc /> public IMethodBuilder NewMethod(string methodName) { var builder = new FluentMethodBuilder(methodName, this.DefineMethod); this.actions.Add(() => builder.Define()); return(builder); }
/// <inheritdoc /> public ITypeBuilder NewMethod(string methodName, Action <IMethodBuilder> action) { var builder = new FluentMethodBuilder(methodName, this.DefineMethod) .CallingConvention(CallingConventions.HasThis); action(builder); this.actions.Add(() => builder.Define()); return(this); }