view Source/Common/IOperable.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
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);
	}
}