Does not contain a definition for and no extension method accepting a first argument of type could be found

前端 未结 3 1021
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-11 18:37

I\'ve looked around at some of the solutions to this problem but they don\'t seem to be the same as what I\'m experiencing.

Method that I\'m trying to call:

3条回答
  •  借酒劲吻你
    2021-01-11 19:32

    placeBets(betList, stakeAmt) is an instance method not a static method. You need to create an instance of CBetfairAPI first:

    MyBetfair api = new MyBetfair();
    ArrayList bets = api.placeBets(betList, stakeAmt);
    

提交回复
热议问题