3 ms·
This is frustratingly vague. Obviously marketing and not real content. It doesn't even hint at how they resolve semantic differences between C# and Java. How d
by Strilanc 14y ago
This is frustratingly vague. Obviously marketing and not real content. It doesn't even hint at how they resolve semantic differences between C# and Java.
How do they erase the generic types while preserving functionality? How do they correctly translate value types into reference types? These are IMPORTANT! Otherwise who knows what happens when you feed it this:
IEnumerable<T> GenerateUntilCatchDefault<T, E>(Func<T> generator) {
try {
while (true) {
yield return generator();
}
} catch (E) {
yield return default(T);
}
}