* FileSystemInfo.cs: corrected COM visibility of UTC properties
[mono.git] / mcs / class / Mono.Security / Mono.Math.Prime.Generator / NextPrimeFinder.cs
1 //
2 // Mono.Math.Prime.Generator.NextPrimeFinder.cs - Prime Generator
3 //
4 // Authors:
5 //      Ben Maurer
6 //
7 // Copyright (c) 2003 Ben Maurer. All rights reserved
8 //
9
10 using System;
11
12 namespace Mono.Math.Prime.Generator {
13
14         /// <summary>
15         /// Finds the next prime after a given number.
16         /// </summary>
17         [CLSCompliant(false)]
18 #if INSIDE_CORLIB
19         internal
20 #else
21         public
22 #endif
23         class NextPrimeFinder : SequentialSearchPrimeGeneratorBase {
24                 
25                 protected override BigInteger GenerateSearchBase (int bits, object Context) 
26                 {
27                         if (Context == null) throw new ArgumentNullException ("Context");
28                         BigInteger ret = new BigInteger ((BigInteger)Context);
29                         ret.setBit (0);
30                         return ret;
31                 }
32         }
33 }