コード例 #1
0
        private async void InitializeData()
        {
            var pluralsightDataStore = new MockPluralsightDataStore();

            CourseList = await pluralsightDataStore.GetCoursesAsync();

            // note the syntax using commas
            // The Note class does not even have a ctor, this must be
            // the way to use c# accessors to init and object
        }
コード例 #2
0
        async void InitializeData()
        {
            var pluralsightDataStore = new MockPluralsightDataStore();

            CourseList = await pluralsightDataStore.GetCoursesAsync();

            Note = new Note
            {
                Course = CourseList[0]
            };
        }
コード例 #3
0
        private async void InitializeData()
        {
            var pluralsightDataStore = new MockPluralsightDataStore();

            CourseList = await pluralsightDataStore.GetCoursesAsync();

            Note = new Note
            {
                Heading = "Test note",
                Text    = "Text for a test note",
                Course  = CourseList[0]
            };
        }