我没有在这行代码中看到错误。也许我需要第二双眼睛来识别它:
targetWs.Cells(subRow, 7) = Application.WorksheetFunction.MedianIf(sourceWs.Range("X3:X92"), ">" & 0)
答案 0 :(得分:1)
MedianIf不是WorksheetFuntion的子代。它不存在。
这将是数组公式:
targetWs.Cells(subRow, 7) = sourceWs.Evaluate("MEDIAN(IF(X3:X92 > 0,X3:X92))")
所以我们需要使用Worksheet.Evaluate():
[Service]
[IntentFilter(new[] {"com.google.firebase.INSTANCE_ID_EVENT"})]
public class FireBaseTokenRefresh : FirebaseInstanceIdService
{
const string TAG = "FireBaseIDService";
public override void OnTokenRefresh()
{
var refreshtoken = FirebaseInstanceId.Instance.Token;
Log.Debug(TAG,"Refresh Token: " + refreshtoken);
}
}