常用方法
常用方法
常用方法
常用方法
public int AddTicket(ITicket ticket) { Guard.WhenArgument(ticket, ticket.GetType().Name).IsNull().Throw(); this.tickets.Add(ticket); return(this.tickets.Count - 1); }
public int AddTicket(ITicket ticket) { Guard.WhenArgument(ticket, ticket.GetType().Name).IsNull().Throw(); this.tickets.Add(ticket); return(this.tickets.Count - 1); }