111 references to UnsafeCast
mscorlib (111)
system\array.cs (7)
2748T[] _this = JitHelpers.UnsafeCast<T[]>(this); 2765T[] _this = JitHelpers.UnsafeCast<T[]>(this); 2773T[] _this = JitHelpers.UnsafeCast<T[]>(this); 2784T[] _this = JitHelpers.UnsafeCast<T[]>(this); 2796T[] _this = JitHelpers.UnsafeCast<T[]>(this); 2813T[] _this = JitHelpers.UnsafeCast<T[]>(this); 2831T[] _this = JitHelpers.UnsafeCast<T[]>(this);
system\runtime\compilerservices\AsyncMethodBuilder.cs (2)
756return JitHelpers.UnsafeCast<Task<TResult>>(task); // UnsafeCast avoids type check we know will succeed 769return JitHelpers.UnsafeCast<Task<TResult>>(task); // UnsafeCast avoids a type check we know will succeed
system\runtime\compilerservices\jithelpers.cs (1)
216return UnsafeCast<PinningHelper>(o);
system\runtime\interopservices\windowsruntime\bindablevectortocollectionadapter.cs (2)
41IBindableVector _this = JitHelpers.UnsafeCast<IBindableVector>(this); 103IBindableVector _this = JitHelpers.UnsafeCast<IBindableVector>(this);
system\runtime\interopservices\windowsruntime\bindablevectortolistadapter.cs (9)
43IBindableVector _this = JitHelpers.UnsafeCast<IBindableVector>(this); 54IBindableVector _this = JitHelpers.UnsafeCast<IBindableVector>(this); 62IBindableVector _this = JitHelpers.UnsafeCast<IBindableVector>(this); 78IBindableVector _this = JitHelpers.UnsafeCast<IBindableVector>(this); 88IBindableVector _this = JitHelpers.UnsafeCast<IBindableVector>(this); 112IBindableVector _this = JitHelpers.UnsafeCast<IBindableVector>(this); 135IBindableVector _this = JitHelpers.UnsafeCast<IBindableVector>(this); 143IBindableVector _this = JitHelpers.UnsafeCast<IBindableVector>(this); 166IBindableVector _this = JitHelpers.UnsafeCast<IBindableVector>(this);
system\runtime\interopservices\windowsruntime\dictionarytomapadapter.cs (7)
41IDictionary<K, V> _this = JitHelpers.UnsafeCast<IDictionary<K, V>>(this); 59IDictionary<K, V> _this = JitHelpers.UnsafeCast<IDictionary<K, V>>(this); 67IDictionary<K, V> _this = JitHelpers.UnsafeCast<IDictionary<K, V>>(this); 75IDictionary<K, V> _this = JitHelpers.UnsafeCast<IDictionary<K, V>>(this); 92IDictionary<K, V> _this = JitHelpers.UnsafeCast<IDictionary<K, V>>(this); 102IDictionary<K, V> _this = JitHelpers.UnsafeCast<IDictionary<K, V>>(this); 117IDictionary<K, V> _this = JitHelpers.UnsafeCast<IDictionary<K, V>>(this);
system\runtime\interopservices\windowsruntime\enumeratortoiteratoradapter.cs (2)
39IEnumerable<T> _this = JitHelpers.UnsafeCast<IEnumerable<T>>(this); 69IEnumerable _this = JitHelpers.UnsafeCast<IEnumerable>(this);
system\runtime\interopservices\windowsruntime\IClosable.cs (2)
37IDisposable _this = JitHelpers.UnsafeCast<IDisposable>(this); 54IClosable _this = JitHelpers.UnsafeCast<IClosable>(this);
system\runtime\interopservices\windowsruntime\icustompropertyprovider.cs (4)
484return JitHelpers.UnsafeCast<IBindableVector>(_target); 493return JitHelpers.UnsafeCast<IVector_Raw<T1>>(_target); 560return JitHelpers.UnsafeCast<IBindableVectorView>(_target); 569return JitHelpers.UnsafeCast<IVectorView<T2>>(_target);
system\runtime\interopservices\windowsruntime\imapviewtoireadonlydictionaryadapter.cs (5)
45IMapView<K, V> _this = JitHelpers.UnsafeCast<IMapView<K, V>>(this); 53IMapView<K, V> _this = JitHelpers.UnsafeCast<IMapView<K, V>>(this); 62IMapView<K, V> _this = JitHelpers.UnsafeCast<IMapView<K, V>>(this); 75IMapView<K, V> _this = JitHelpers.UnsafeCast<IMapView<K, V>>(this); 86IMapView<K, V> _this = JitHelpers.UnsafeCast<IMapView<K, V>>(this);
system\runtime\interopservices\windowsruntime\ireadonlydictionarytoimapviewadapter.cs (4)
41IReadOnlyDictionary<K, V> _this = JitHelpers.UnsafeCast<IReadOnlyDictionary<K, V>>(this); 59IReadOnlyDictionary<K, V> _this = JitHelpers.UnsafeCast<IReadOnlyDictionary<K, V>>(this); 67IReadOnlyDictionary<K, V> _this = JitHelpers.UnsafeCast<IReadOnlyDictionary<K, V>>(this); 75IReadOnlyDictionary<K, V> _this = JitHelpers.UnsafeCast<IReadOnlyDictionary<K, V>>(this);
system\runtime\interopservices\windowsruntime\ireadonlylisttoivectorviewadapter.cs (4)
41IReadOnlyList<T> _this = JitHelpers.UnsafeCast<IReadOnlyList<T>>(this); 59IReadOnlyList<T> _this = JitHelpers.UnsafeCast<IReadOnlyList<T>>(this); 67IReadOnlyList<T> _this = JitHelpers.UnsafeCast<IReadOnlyList<T>>(this); 94IReadOnlyList<T> _this = JitHelpers.UnsafeCast<IReadOnlyList<T>>(this);
system\runtime\interopservices\windowsruntime\iteratortoenumeratoradapter.cs (4)
41IIterable<T> _this = JitHelpers.UnsafeCast<IIterable<T>>(this); 60return (JitHelpers.UnsafeCast<GetEnumerator_Delegate<T>>(target))(); 65return JitHelpers.UnsafeCast<IEnumerator<T>>(GetEnumerator_Stub<string>()); 97IBindableIterable _this = JitHelpers.UnsafeCast<IBindableIterable>(this);
system\runtime\interopservices\windowsruntime\ivectorviewtoireadonlylistadapter.cs (3)
46IVectorView<T> _this = JitHelpers.UnsafeCast<IVectorView<T>>(this); 76return (JitHelpers.UnsafeCast<Indexer_Get_Delegate<T>>(target))(index); 81return JitHelpers.UnsafeCast<T>(Indexer_Get<string>(index));
system\runtime\interopservices\windowsruntime\listtobindablevectoradapter.cs (10)
41IList _this = JitHelpers.UnsafeCast<IList>(this); 58IList _this = JitHelpers.UnsafeCast<IList>(this); 66IList _this = JitHelpers.UnsafeCast<IList>(this); 74IList _this = JitHelpers.UnsafeCast<IList>(this); 91IList _this = JitHelpers.UnsafeCast<IList>(this); 108IList _this = JitHelpers.UnsafeCast<IList>(this); 130IList _this = JitHelpers.UnsafeCast<IList>(this); 149IList _this = JitHelpers.UnsafeCast<IList>(this); 157IList _this = JitHelpers.UnsafeCast<IList>(this); 173IList _this = JitHelpers.UnsafeCast<IList>(this);
system\runtime\interopservices\windowsruntime\listtovectoradapter.cs (12)
41IList<T> _this = JitHelpers.UnsafeCast<IList<T>>(this); 58IList<T> _this = JitHelpers.UnsafeCast<IList<T>>(this); 66IList<T> _this = JitHelpers.UnsafeCast<IList<T>>(this); 83IList<T> _this = JitHelpers.UnsafeCast<IList<T>>(this); 100IList<T> _this = JitHelpers.UnsafeCast<IList<T>>(this); 117IList<T> _this = JitHelpers.UnsafeCast<IList<T>>(this); 139IList<T> _this = JitHelpers.UnsafeCast<IList<T>>(this); 158IList<T> _this = JitHelpers.UnsafeCast<IList<T>>(this); 166IList<T> _this = JitHelpers.UnsafeCast<IList<T>>(this); 182IList<T> _this = JitHelpers.UnsafeCast<IList<T>>(this); 190IList<T> _this = JitHelpers.UnsafeCast<IList<T>>(this); 198IList<T> _this = JitHelpers.UnsafeCast<IList<T>>(this);
system\runtime\interopservices\windowsruntime\maptocollectionadapter.cs (11)
43object _this = JitHelpers.UnsafeCast<object>(this); 59IVector<KeyValuePair<K, V>> _this_vector = JitHelpers.UnsafeCast<IVector<KeyValuePair<K, V>>>(this); 82object _this = JitHelpers.UnsafeCast<object>(this); 91IVector<KeyValuePair<K, V>> _this_vector = JitHelpers.UnsafeCast<IVector<KeyValuePair<K, V>>>(this); 100object _this = JitHelpers.UnsafeCast<object>(this); 109IVector<KeyValuePair<K, V>> _this_vector = JitHelpers.UnsafeCast<IVector<KeyValuePair<K, V>>>(this); 118object _this = JitHelpers.UnsafeCast<object>(this); 133IVector<KeyValuePair<K, V>> _this_vector = JitHelpers.UnsafeCast<IVector<KeyValuePair<K, V>>>(this); 158IIterable<KeyValuePair<K, V>> _this = JitHelpers.UnsafeCast<IIterable<KeyValuePair<K, V>>>(this); 169object _this = JitHelpers.UnsafeCast<object>(this); 178IVector<KeyValuePair<K, V>> _this_vector = JitHelpers.UnsafeCast<IVector<KeyValuePair<K, V>>>(this);
system\runtime\interopservices\windowsruntime\maptodictionaryadapter.cs (8)
44IMap<K, V> _this = JitHelpers.UnsafeCast<IMap<K, V>>(this); 57IMap<K, V> _this = JitHelpers.UnsafeCast<IMap<K, V>>(this); 65IMap<K, V> _this = JitHelpers.UnsafeCast<IMap<K, V>>(this); 74IMap<K, V> _this = JitHelpers.UnsafeCast<IMap<K, V>>(this); 87IMap<K, V> _this = JitHelpers.UnsafeCast<IMap<K, V>>(this); 103IMap<K, V> _this = JitHelpers.UnsafeCast<IMap<K, V>>(this); 114IMap<K, V> _this = JitHelpers.UnsafeCast<IMap<K, V>>(this); 140IMap<K, V> _this = JitHelpers.UnsafeCast<IMap<K, V>>(this);
system\runtime\interopservices\windowsruntime\mapviewtoreadonlycollectionadapter.cs (2)
43object _this = JitHelpers.UnsafeCast<object>(this); 59IVectorView<KeyValuePair<K, V>> _this_vector = JitHelpers.UnsafeCast<IVectorView<KeyValuePair<K, V>>>(this);
system\runtime\interopservices\windowsruntime\vectortocollectionadapter.cs (6)
40IVector<T> _this = JitHelpers.UnsafeCast<IVector<T>>(this); 61IVector<T> _this = JitHelpers.UnsafeCast<IVector<T>>(this); 69IVector<T> _this = JitHelpers.UnsafeCast<IVector<T>>(this); 77IVector<T> _this = JitHelpers.UnsafeCast<IVector<T>>(this); 101IVector<T> _this = JitHelpers.UnsafeCast<IVector<T>>(this); 113IVector<T> _this = JitHelpers.UnsafeCast<IVector<T>>(this);
system\runtime\interopservices\windowsruntime\vectortolistadapter.cs (5)
42IVector<T> _this = JitHelpers.UnsafeCast<IVector<T>>(this); 53IVector<T> _this = JitHelpers.UnsafeCast<IVector<T>>(this); 61IVector<T> _this = JitHelpers.UnsafeCast<IVector<T>>(this); 84IVector<T> _this = JitHelpers.UnsafeCast<IVector<T>>(this); 95IVector<T> _this = JitHelpers.UnsafeCast<IVector<T>>(this);
system\runtime\interopservices\windowsruntime\vectorviewtoreadonlycollectionadapter.cs (1)
40IVectorView<T> _this = JitHelpers.UnsafeCast<IVectorView<T>>(this);