/// <summary> /// Loads all parameters from the given metadata module. /// </summary> private void LoadParameters() { TokenTypes maxParam = metadata.GetMaxTokenValue(TokenTypes.Param); TokenTypes token = TokenTypes.Param + 1; int offset = 0; while (token <= maxParam) { ParamRow paramDef = metadata.ReadParamRow(token++); parameters[offset++] = new RuntimeParameter(metadataModule, paramDef); } }
/// <summary> /// Initializes a new instance of <see cref="ParameterOperand"/>. /// </summary> /// <param name="register">The stack frame register.</param> /// <param name="param">The runtime parameter object, that represents this parameter.</param> /// <param name="type">The parameter type.</param> public ParameterOperand(Register register, RuntimeParameter param, SigType type) : base(type, register, param.Position) { _parameter = param; }
/// <summary> /// Initializes a new instance of <see cref="ParameterOperand"/>. /// </summary> /// <param name="register">The stack frame register.</param> /// <param name="param">The runtime parameter object, that represents this parameter.</param> /// <param name="type">The parameter type.</param> public ParameterOperand(Register register, RuntimeParameter param, SigType type) : base(type, register, param.Position) { _parameter = param; }