コード例 #1
0
        public static async Task<ManualHashsetTester> Get()
        {
            ManualHashsetTester tester = new ManualHashsetTester();
            await tester.ss.WaitAsync();

            IReadOnlyList<StorageFile> files = await tester.root.GetFilesAsync();
            foreach (StorageFile file in files)
            {
                tester.hashSet.Add(file.Name);
            }
            tester.ss.Release();
            return tester;
        }
コード例 #2
0
        public static async Task <ManualHashsetTester> Get()
        {
            ManualHashsetTester tester = new ManualHashsetTester();
            await tester.ss.WaitAsync().ConfigureAwait(false);

            IReadOnlyList <StorageFile> files = await tester.root.GetFilesAsync().AsTask().ConfigureAwait(false);

            foreach (StorageFile file in files)
            {
                tester.hashSet.Add(file.Name);
            }
            tester.ss.Release();
            return(tester);
        }