我有三個規則: 上午09時和下午3時之間A.時隙 B.時隙betweem下午3點和下午7點和下午7點上午9點之間 C.時隙 目前,我代表他們爲TimeSpan小號 public class Rule
{
public string Name {get; set;}
public TimeSpan From {get; set;}
}
List<Rule> rules =
如何將遞歸時間添加到timedate或時間跨度值? 我已經試過這一點,但它給了我錯誤: 'A local variable named 'total' cannot be declared in this scope because it would give a different meaning to 'total, which is already in used in a 'parent