A propósito del ProjectEuler
8:49 | Author: Unknown

Para la resolución del primer problema del Proyecto Euler hice un extension method:

public static class IntExtension
{
public static bool IsMultiplesOf (this int number, int multiple)
{
return (number % multiple) == 0;
}
}


Y su uso es tan simple como



i.IsMultiplesOf(3)

|
This entry was posted on 8:49 and is filed under . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.