Skip to main content
6 events
when toggle format what by license comment
Jul 6, 2016 at 12:14 vote accept Michael Brandon Morris
Jul 6, 2016 at 3:57 comment added t3chb0t @Xiaoy312 thx, notepad coding ;-) fixed. The argument-out-of-range-exeption doesn't make any sense either but you need something there to satisfy the compiler. Besides it's only a sample. You can always try to get the list with the TryGetValue method.
Jul 6, 2016 at 3:54 history edited t3chb0t CC BY-SA 3.0
deleted 7 characters in body
Jul 5, 2016 at 21:17 comment added Xiaoy312 This code doesn't compile. You can't return a IEnumerable<MenuItem> here. You should've used a Dictionary<QueryType, List<MenuItem>>. There also is 2 small details you missed : it throws KeyNotFoundException instead of ArgumentOutOfRangeException and you wrote cureent.
Jul 5, 2016 at 19:06 history edited t3chb0t CC BY-SA 3.0
added 97 characters in body
Jul 5, 2016 at 18:56 history answered t3chb0t CC BY-SA 3.0