BTDB.IL.ILDynamicTypeImpl.DefineMethod C# (CSharp) Method

DefineMethod() public method

public DefineMethod ( string name, Type returns, Type parameters, MethodAttributes methodAttributes = MethodAttributes.Public ) : IILMethod
name string
returns System.Type
parameters System.Type
methodAttributes MethodAttributes
return IILMethod
        public IILMethod DefineMethod(string name, Type returns, Type[] parameters, MethodAttributes methodAttributes = MethodAttributes.Public)
        {
            var methodBuilder = _typeBuilder.DefineMethod(name, methodAttributes, returns, parameters);
            return new ILMethodImpl(methodBuilder, _forbidenInstructions);
        }