MemoryExtensions.Min 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| Min<T>(ReadOnlySpan<T>) | |
| Min<T>(ReadOnlySpan<T>, IComparer<T>) |
Min<T>(ReadOnlySpan<T>)
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T Min(ReadOnlySpan<T> span);
public static T? Min<T>(this ReadOnlySpan<T> span);
static member Min : ReadOnlySpan<'T> -> 'T
<Extension()>
Public Function Min(Of T) (span As ReadOnlySpan(Of T)) As T
類型參數
- T
參數
- span
- ReadOnlySpan<T>
傳回
T
適用於
Min<T>(ReadOnlySpan<T>, IComparer<T>)
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T Min(ReadOnlySpan<T> span, System::Collections::Generic::IComparer<T> ^ comparer);
public static T? Min<T>(this ReadOnlySpan<T> span, System.Collections.Generic.IComparer<T>? comparer);
static member Min : ReadOnlySpan<'T> * System.Collections.Generic.IComparer<'T> -> 'T
<Extension()>
Public Function Min(Of T) (span As ReadOnlySpan(Of T), comparer As IComparer(Of T)) As T
類型參數
- T
參數
- span
- ReadOnlySpan<T>
- comparer
- IComparer<T>
傳回
T