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

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Source/Common/IOperable.cs	Thu Mar 27 21:46:09 2014 +0400
@@ -0,0 +1,28 @@
+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);
+	}
+}
+