コード例 #1
0
        public FactsListViewModel(IAssets assets)
        {
            string      json  = assets.GetAssetAsString("Facts/facts.json");
            List <Fact> facts = JsonConvert.DeserializeObject <List <Fact> >(json);

            this.Facts = new ObservableCollection <Fact>(facts);
        }