ImmutableHashSet<T>.Builder.TryGetValue(T, T) 方法

定义

在集内搜索给定的值,并返回所找到的相等值(如果有)。

public:
 bool TryGetValue(T equalValue, [Runtime::InteropServices::Out] T % actualValue);
public bool TryGetValue (T equalValue, out T actualValue);
member this.TryGetValue : 'T * 'T -> bool
Public Function TryGetValue (equalValue As T, ByRef actualValue As T) As Boolean

参数

equalValue
T

要搜索的值。

actualValue
T

搜索操作在集内找到的值;如果搜索操作未生成任何匹配项,则返回原始值。

返回

一个指示搜索是否成功的值。

适用于