No hace mucho os comentaba algunos detalles desagradables sobre la licencia de la Enterprise Library de Microsoft.
Pues bien, hoy via el blog de Migel de Icaza me entero de que la nueva version (para .Net 3.5) ha sido publiada bajo la Microsoft Public License que es bastante mas amigable, permitiendo ejecutarla en plataformas diferentes a Windows.
No dejan de ser gratas noticias :)
Tuesday, June 10, 2008
Friday, June 6, 2008
Viernes
public class Friday : WorkingDay
{
public override void Work(Person person)
{
while (this.PreviousDay.StillInParty)
{
person.Drink();
}
Datetime arriveHome = DateTime.Now;
TimeSpan sleeping = this.WorkStartTime - arriveHome;
if (sleeping.Hours < 4 && person.Beers.Count > 10)
{
throw new WorkingDrunkException();
}
}
}
{
public override void Work(Person person)
{
while (this.PreviousDay.StillInParty)
{
person.Drink();
}
Datetime arriveHome = DateTime.Now;
TimeSpan sleeping = this.WorkStartTime - arriveHome;
if (sleeping.Hours < 4 && person.Beers.Count > 10)
{
throw new WorkingDrunkException();
}
}
}
Subscribe to:
Posts (Atom)