Edit

Share via


IModulusOperators<TSelf,TOther,TResult> Interface

Definition

Defines a mechanism for computing the modulus or remainder of two values.

C#
public interface IModulusOperators<TSelf,TOther,TResult> where TSelf : IModulusOperators<TSelf,TOther,TResult>

Type Parameters

TSelf

The type that implements this interface.

TOther

The type that will divide TSelf.

TResult

The type that contains the modulus or remainder of TSelf and TOther.

Derived

Remarks

This type represents the % operator in C#, which is often used to compute the remainder. It may differ from an actual modulo operation depending on the type that implements the interface.

Operators

Modulus(TSelf, TOther)

Divides two values together to compute their modulus or remainder.

Applies to

Product Versions
.NET 7, 8, 9