IModulusOperators<TSelf,TOther,TResult> 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
定義計算兩個值的模數或餘數的機制。
generic <typename TSelf, typename TOther, typename TResult>
where TSelf : IModulusOperators<TSelf, TOther, TResult>public interface class IModulusOperators
public interface IModulusOperators<TSelf,TOther,TResult> where TSelf : IModulusOperators<TSelf,TOther,TResult>
type IModulusOperators<'Self, 'Other, 'Result (requires 'Self :> IModulusOperators<'Self, 'Other, 'Result>)> = interface
Public Interface IModulusOperators(Of TSelf, TOther, TResult)
類型參數
- TSelf
實作這個介面的型別。
- TOther
將除的型別 TSelf
。
- TResult
包含 和 TOther
之模數或餘數的類型 TSelf
。
- 衍生
備註
此類型代表 %
C# 中的運算子,通常用來計算餘數。 它可能與實際的模數作業不同,視實作介面的類型而定。
運算子
Modulus(TSelf, TOther) |
將兩個值分割在一起,以計算其模數或餘數。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應