view Source/Common/IOperable.cs @ 9:1e85f66cf767 default tip

update bltoolkit
author nickolay
date Thu, 05 Apr 2018 20:53:26 +0300
parents f990fcb411a9
children
line wrap: on
line source

using System;

namespace BLToolkit.Common
{
	public interface IOperable<T>
	{
		T Addition             (T op1, T op2);
		T Subtraction          (T op1, T op2);
		T Multiply             (T op1, T op2);
		T Division             (T op1, T op2);
		T Modulus              (T op1, T op2);

		T BitwiseAnd           (T op1, T op2);
		T BitwiseOr            (T op1, T op2);
		T ExclusiveOr          (T op1, T op2);

		T UnaryNegation        (T op);
		T OnesComplement       (T op);
		
		bool Equality          (T op1, T op2);
		bool Inequality        (T op1, T op2);
		bool GreaterThan       (T op1, T op2);
		bool GreaterThanOrEqual(T op1, T op2);
		bool LessThan          (T op1, T op2);
		bool LessThanOrEqual   (T op1, T op2);
	}
}