Table of Contents

Assign Method

Definition

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

Assign<T>(T, T)

Performs an assignment of the right-hand operand to the left-hand operand.

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

Parameters

x T

The left-hand operand.

y T

The right-hand operand.

Returns

T

The value of 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.