Example #1
0
        private static void WinRT_IReadOnlyDictionary <K, V>(IMapViewToIReadOnlyDictionaryAdapter mapToDictionaryAdapter, IReadOnlyDictionaryToIMapViewAdapter dictionaryToMapAdapter, IMapView <K, V> mapView, MapViewToReadOnlyCollectionAdapter mapViewToReadOnlyCollectionAdapter)
        {
            Internal.WinRT_IEnumerable <KeyValuePair <K, V> >(null, null, null);
            Internal.WinRT_IReadOnlyCollection <KeyValuePair <K, V> >(null);
            mapToDictionaryAdapter.Indexer_Get <K, V>(default(K));
            mapToDictionaryAdapter.ContainsKey <K, V>(default(K));
            V v;

            mapToDictionaryAdapter.TryGetValue <K, V>(default(K), out v);
            mapViewToReadOnlyCollectionAdapter.Count <K, V>();
            dictionaryToMapAdapter.Lookup <K, V>(default(K));
            dictionaryToMapAdapter.Size <K, V>();
            dictionaryToMapAdapter.HasKey <K, V>(default(K));
        }
Example #2
0
        private static void WinRT_IReadOnlyDictionary <K, V>(IMapViewToIReadOnlyDictionaryAdapter mapToDictionaryAdapter, IReadOnlyDictionaryToIMapViewAdapter dictionaryToMapAdapter, IMapView <K, V> mapView, MapViewToReadOnlyCollectionAdapter mapViewToReadOnlyCollectionAdapter)
        {
            WinRT_IEnumerable <KeyValuePair <K, V> >(null, null, null);
            WinRT_IReadOnlyCollection <KeyValuePair <K, V> >(null);

            // instantiate stubs for commonly used methods on IReadOnlyDictionary<K, V>
            V dummy;

            mapToDictionaryAdapter.Indexer_Get <K, V>(default(K));
            mapToDictionaryAdapter.ContainsKey <K, V>(default(K));
            mapToDictionaryAdapter.TryGetValue <K, V>(default(K), out dummy);

            // instantiate stubs for commonly used methods in IReadOnlyCollection<T>
            mapViewToReadOnlyCollectionAdapter.Count <K, V>();

            // instantiate stubs for commonly used methods on IMapView<K, V>
            dictionaryToMapAdapter.Lookup <K, V>(default(K));
            dictionaryToMapAdapter.Size <K, V>();
            dictionaryToMapAdapter.HasKey <K, V>(default(K));
        }