Ejemplo n.º 1
0
 public static InvalidOperationException UnableToFactorize(this IPrimeFactorizer factorizer, UInt32 value)
 {
     return(new InvalidOperationException(String.Format("{0} was not able to factorize {1}", factorizer.GetType().Name, value)));
 }
Ejemplo n.º 2
0
 public static InvalidOperationException UnableToDivide(this IPrimeFactorizer factorizer, UInt32 value, PoweredPrime[] factors)
 {
     return(new InvalidOperationException(String.Format("{0} was not able to divide {1} byte factors {2}",
                                                        factorizer.GetType().Name, value, factors.SerializeObject())));
 }