Example #1
0
        private static void WinRT_IList <T>(VectorToListAdapter vectorToListAdapter, VectorToCollectionAdapter vectorToCollectionAdapter, ListToVectorAdapter listToVectorAdapter, IVector <T> vector)
        {
            WinRT_IEnumerable <T>(null, null, null);

            // instantiate stubs for commonly used methods on IList<T> and ICollection<T>
            vectorToListAdapter.Indexer_Get <T>(0);
            vectorToListAdapter.Indexer_Set <T>(0, default);
            vectorToListAdapter.Insert <T>(0, default);
            vectorToListAdapter.RemoveAt <T>(0);
            vectorToCollectionAdapter.Count <T>();
            vectorToCollectionAdapter.Add <T>(default);
Example #2
0
 private static void WinRT_IList <T>(VectorToListAdapter vectorToListAdapter, VectorToCollectionAdapter vectorToCollectionAdapter, ListToVectorAdapter listToVectorAdapter, IVector <T> vector)
 {
     Internal.WinRT_IEnumerable <T>(null, null, null);
     vectorToListAdapter.Indexer_Get <T>(0);
     vectorToListAdapter.Indexer_Set <T>(0, default(T));
     vectorToListAdapter.Insert <T>(0, default(T));
     vectorToListAdapter.RemoveAt <T>(0);
     vectorToCollectionAdapter.Count <T>();
     vectorToCollectionAdapter.Add <T>(default(T));
     vectorToCollectionAdapter.Clear <T>();
     listToVectorAdapter.GetAt <T>(0U);
     listToVectorAdapter.Size <T>();
     listToVectorAdapter.SetAt <T>(0U, default(T));
     listToVectorAdapter.InsertAt <T>(0U, default(T));
     listToVectorAdapter.RemoveAt <T>(0U);
     listToVectorAdapter.Append <T>(default(T));
     listToVectorAdapter.RemoveAtEnd <T>();
     listToVectorAdapter.Clear <T>();
 }