Beispiel #1
0
		protected static TTo FromTReturn<TTo>(TReturn returnValue)
		{
#if NETCOREAPP3_1 || NET5_0
			return Unsafe.As<TReturn, TTo>(ref returnValue);
#else
            return ContinuationsHelper.Convert<TReturn, TTo>(returnValue);
#endif
		}
Beispiel #2
0
		protected static TReturn ToTReturn<TFrom>(TFrom returnValue)
		{
#if NETCOREAPP3_1 || NET5_0
			return Unsafe.As<TFrom, TReturn>(ref returnValue);
#else
            return ContinuationsHelper.Convert<TFrom, TReturn>(returnValue);
#endif
		}