public static UnaryAbstractNumber AsNumber(this IUnaryNumberOperation operation) { if (operation == null) { throw new ArgumentNullException(nameof(operation)); } return(new UnaryAbstractNumber(operation)); }
public static IUnaryNumberOperation Apply(this IBinaryNumberOperation outer, IUnaryNumberOperation left, IUnaryNumberOperation right) { if (outer == null) { throw new ArgumentNullException(nameof(outer)); } return(new BinaryUnaryUnaryOperation(outer, left, right)); }
public static IBinaryNumberOperation AsBinary(this IUnaryNumberOperation operation) { if (operation == null) { throw new ArgumentNullException(nameof(operation)); } return(new UnaryAsBinaryOperation(operation)); }
public static IBinaryNumberOperation Apply(this IUnaryNumberOperation outer, IBinaryNumberOperation inner) { if (outer == null) { throw new ArgumentNullException(nameof(outer)); } if (inner == null) { throw new ArgumentNullException(nameof(inner)); } return(new UnaryBinaryOperation(outer, inner)); }