guid", and then tries to match it.The logic I want to achieve is:

问题描述 投票:2回答:1
but my IDE (Rider 2020.1 MacOs) is giving me this warning:

I don't understand why?

   try
        let s = orderId.Split('|')
        match (s.[0], s.[1]) with
        | "G", coreGuid ->  OrderClass.Grid
        | "C", coreGuid ->  OrderClass.Close
        | _, _          ->  OrderClass.External
    with _ ->
        OrderClass.External

if s.[0] = "G" && s.[1] = coreGuid   for the first line, and
if s.[0] = "C" && s.[1] = coreGuid   for the second line

enter image description here

I have the following code: try let s = orderId.Split('

f# rider
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.