public EasyRuntimeMethod(AbstractEasyType maintype, string name, ReturnReferenceExpression returnRef, ArgumentReference[] arguments) { MethodAttributes attributes = MethodAttributes.HideBySig | MethodAttributes.Virtual | MethodAttributes.Public; Type[] parameterTypes = ArgumentsUtil.InitializeAndConvert(arguments); base._builder = maintype.TypeBuilder.DefineMethod(name, attributes, returnRef.Type, parameterTypes); base._builder.SetImplementationFlags(MethodImplAttributes.CodeTypeMask); }
internal EasyConstructor(AbstractEasyType maintype, params ArgumentReference[] arguments) { _maintype = maintype; Type[] args = ArgumentsUtil.InitializeAndConvert(arguments); _builder = maintype.TypeBuilder.DefineConstructor( MethodAttributes.Public, CallingConventions.Standard, args); }
internal EasyMethod(AbstractEasyType maintype, string name, MethodAttributes attrs, ReturnReferenceExpression returnRef, params ArgumentReference[] arguments) { this._maintype = maintype; this._arguments = arguments; Type returnType = returnRef.Type; Type[] parameterTypes = ArgumentsUtil.InitializeAndConvert(arguments); this._builder = maintype.TypeBuilder.DefineMethod(name, attrs, returnType, parameterTypes); }
public EasyRuntimeConstructor(AbstractEasyType maintype, params ArgumentReference[] arguments) { Type[] args = ArgumentsUtil.InitializeAndConvert(arguments); _builder = maintype.TypeBuilder.DefineConstructor( MethodAttributes.SpecialName | MethodAttributes.Public | MethodAttributes.HideBySig, CallingConventions.Standard, args); _builder.SetImplementationFlags(MethodImplAttributes.Runtime | MethodImplAttributes.Managed); }
public EasyRuntimeMethod(AbstractEasyType maintype, string name, ReturnReferenceExpression returnRef, ArgumentReference[] arguments) { MethodAttributes atts = MethodAttributes.HideBySig | MethodAttributes.Public | MethodAttributes.Virtual; Type[] args = ArgumentsUtil.InitializeAndConvert(arguments); _builder = maintype.TypeBuilder.DefineMethod( name, atts, returnRef.Type, args); _builder.SetImplementationFlags( MethodImplAttributes.Runtime | MethodImplAttributes.Managed); }
public EasyRuntimeConstructor(AbstractEasyType maintype, params ArgumentReference[] arguments) { Type[] parameterTypes = ArgumentsUtil.InitializeAndConvert(arguments); base._builder = maintype.TypeBuilder.DefineConstructor(MethodAttributes.SpecialName | MethodAttributes.HideBySig | MethodAttributes.Public, CallingConventions.Standard, parameterTypes); base._builder.SetImplementationFlags(MethodImplAttributes.CodeTypeMask); }