Esempio n. 1
0
        /// <inheritdoc />
        public IMethodBuilder NewMethod(string methodName)
        {
            var builder = new FluentMethodBuilder(methodName, this.DefineMethod);

            this.actions.Add(() => builder.Define());
            return(builder);
        }
Esempio n. 2
0
        /// <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);
        }