I have a ViewModel class containing a Dictionary (and other irrelevant things for this question): public class MyViewModel {