IModulusOperators<TSelf,TOther,TResult> 接口

定义

定义用于计算两个值的模数或余数的机制。

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)

将两个值相除以计算其模数或余数。

适用于