public void raid_create(Context ctx, uint day, uint month, uint hours, uint minutes, int offset, [RegexParameter(@"[\S\s]+")] string description) { //Derive the year var year = DateTool.GetDefaultYear((int)day, (int)month); //Validate our inputs Precondition.Assert(DateTool.IsValidDate((int)day, (int)month, year), "Invalid date!"); Precondition.Assert(hours < 24, "Invalid hours!"); Precondition.Assert(minutes < 60, "Invalid minutes!"); Precondition.Assert(Math.Abs(offset) <= 12, "Invalid offset!"); //Pass on to the implementation this.raid_create_impl(ctx, (int)day, (int)month, year, (int)hours, (int)minutes, offset, description); }