Table of Contents

Multiply Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Calculator.cs

Multiply<T>(T, T)

Performs a binary multiplication of the two specified values.

public static T Multiply<T>(T x, T y) where T : struct, IConvertible

Parameters

x T

The multiplicand.

y T

The multiplier.

Returns

T

The result of multiplying x and y.

Type Parameters

T

The type of the values for the operand operation.

Exceptions

TypeArgumentException

T is outside the range of allowed types.
Allowed types are: byte, decimal, double, short, int, long, sbyte, float, ushort, uint or ulong.

OverflowException

The sum of x and y is less than or greater than the by T valid MinValue and MaxValue.