示例#1
0
        private static void CreateContractedBigIntegerWithLotsOfInformation()
        {
            var xInfo = NumberGenerator.CreateContractedBigIntegerWithLotsOfInformation(5);

            Console.Out.WriteLine("Item1 = " + xInfo.Item1);
            Console.Out.WriteLine("Item2 = " + xInfo.Item2.ToString("R"));
            Console.Out.WriteLine("Item3 = " + xInfo.Item3);
        }
示例#2
0
 private static void CreateFailFastBigIntegerWithLotsOfInformation()
 {
     try
     {
         var xInfo = NumberGenerator.CreateContractedBigIntegerWithLotsOfInformation(0);
         Console.Out.WriteLine("Item1 = " + xInfo.Item1);
         Console.Out.WriteLine("Item2 = " + xInfo.Item2.ToString("R"));
         Console.Out.WriteLine("Item3 = " + xInfo.Item3);
     }
     catch (ArgumentException e)
     {
         Environment.FailFast("Stop right now!", e);
     }
 }