Show / Hide Table of Contents

Class Operator<TLeft, TRight, TResult>

Provide efficient generic access to either native or static operators for the given type combination.

Inheritance
System.Object
Operator<TLeft, TRight, TResult>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Sttz.Tweener.Core
Assembly: cs.temp.dll.dll
Syntax
public static class Operator<TLeft, TRight, TResult>
Type Parameters
Name Description
TLeft

The type of the left operand.

TRight

The type of the right operand.

TResult

The type of the result value.

Remarks

Inspired by Keith Farmer's code on CodeProject:
http://www.codeproject.com/KB/cs/genericoperators.aspx

Properties

Addition

Gets the addition operator + (either native or "op_Addition").

Declaration
public static BinaryOperator<TLeft, TRight, TResult> Addition { get; }
Property Value
Type Description
BinaryOperator<TLeft, TRight, TResult>

The addition operator.

BitwiseAnd

Gets the bitwise and operator & (either native or "op_BitwiseAnd").

Declaration
public static BinaryOperator<TLeft, TRight, TResult> BitwiseAnd { get; }
Property Value
Type Description
BinaryOperator<TLeft, TRight, TResult>

The bitwise and operator.

BitwiseOr

Gets the bitwise or operator | (either native or "op_BitwiseOr").

Declaration
public static BinaryOperator<TLeft, TRight, TResult> BitwiseOr { get; }
Property Value
Type Description
BinaryOperator<TLeft, TRight, TResult>

The bitwise or operator.

Division

Gets the division operator / (either native or "op_Division").

Declaration
public static BinaryOperator<TLeft, TRight, TResult> Division { get; }
Property Value
Type Description
BinaryOperator<TLeft, TRight, TResult>

The division operator.

ExclusiveOr

Gets the exclusive or operator ^ (either native or "op_ExclusiveOr").

Declaration
public static BinaryOperator<TLeft, TRight, TResult> ExclusiveOr { get; }
Property Value
Type Description
BinaryOperator<TLeft, TRight, TResult>

The exclusive or operator.

LeftShift

Gets the left shift operator << (either native or "op_LeftShift").

Declaration
public static BinaryOperator<TLeft, TRight, TResult> LeftShift { get; }
Property Value
Type Description
BinaryOperator<TLeft, TRight, TResult>

The left shift operator.

Modulus

Gets the modulus operator % (either native or "op_Modulus").

Declaration
public static BinaryOperator<TLeft, TRight, TResult> Modulus { get; }
Property Value
Type Description
BinaryOperator<TLeft, TRight, TResult>

The modulus operator.

Multiply

Gets the multiplication operator * (either native or "op_Multiply").

Declaration
public static BinaryOperator<TLeft, TRight, TResult> Multiply { get; }
Property Value
Type Description
BinaryOperator<TLeft, TRight, TResult>

The multiplication operator.

RightShift

Gets the right shift operator >> (either native or "op_RightShift").

Declaration
public static BinaryOperator<TLeft, TRight, TResult> RightShift { get; }
Property Value
Type Description
BinaryOperator<TLeft, TRight, TResult>

The right shift operator.

Subtraction

Gets the subtraction operator - (either native or "op_Addition").

Declaration
public static BinaryOperator<TLeft, TRight, TResult> Subtraction { get; }
Property Value
Type Description
BinaryOperator<TLeft, TRight, TResult>

The subtraction operator.

Back to top © 2018 Adrian Stutz