小编lst*_*iak的帖子

强制Glassfish4使用杰克逊代替Moxy

Glassfish4正在使用Moxy将REST响应序列化为JSON.有谁知道如何配置应用程序使用杰克逊而不是Moxy?

glassfish jersey jackson moxy

12
推荐指数
1
解决办法
9432
查看次数

F# - Using Concurrent.ConcurrentDictionary.TryRemove with dotnet 5

I'm migrating my F# code from dotnet3.1 to 5 and struggling with following code:

        let tryRemove key (dict: Concurrent.ConcurrentDictionary<'a, 'b>) =
           match dict.TryRemove(key) with
           | (true, v) -> Some v
           | (false, _) -> None
Run Code Online (Sandbox Code Playgroud)

In 3.1 TryRemove returned tuple, in version 5 it returnes only boolean value. To get value from dictionary I need to pass reference as second parameter of TryRemove. What is the correct way to do it and avoid returning null v?

I have tried …

.net f# c#-to-f#

6
推荐指数
1
解决办法
179
查看次数

标签 统计

.net ×1

c#-to-f# ×1

f# ×1

glassfish ×1

jackson ×1

jersey ×1

moxy ×1