我正在尝试编写Martin Fowler的循环事件日历的实现,我理解其中的大部分内容,但在他的所有抽象类中,他都传递了一个名为eventArgs的字符串作为参数。
例如:
class Schedule {
public boolean isOccuring( String eventArg, Date aDate )
public Vector dates( String eventArg, DateRange during )
public Date nextOccurence( String eventArg, Date aDate )
}
有人知道这是干嘛用的吗?
我是MVC的新手,谁能告诉我RedirectResult是用来干嘛的?
我想知道这两者有什么不同:
public ActionResult Index()
{
return new RedirectResult("http://www.google.com");
}
还有这个:
public RedirectResult Index()
{
return new RedirectResult("http://www.google.com");
}