IModulusOperators<TSelf,TOther,TResult> Interfejs

Definicja

Definiuje mechanizm przetwarzania modulu lub pozostałej części dwóch wartości.

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)

Parametry typu

TSelf

Typ implementujący ten interfejs.

TOther

Typ, który podzieli wartość TSelf.

TResult

Typ zawierający modul lub pozostałą część TSelf i TOther.

Pochodne

Uwagi

Ten typ reprezentuje % operatora w języku C#, który jest często używany do obliczania reszty. Może się różnić od rzeczywistej operacji modulo w zależności od typu implementowania interfejsu.

Operatory

Modulus(TSelf, TOther)

Dzieli dwie wartości w celu obliczenia ich modulu lub reszty.

Dotyczy