X# differes from C# ? - IEnumerable ?? Help ???
Posted: Sun Feb 12, 2017 2:20 pm
Hi Robert and Team, and anyone else with knowledge,
I have a small (but interesting?) problem, while converting work C# app code to X#. So far everything has translated as I thought it should / would. Until now when I come to 'IEnumerable'.
Both C# and X# apps are targeted at the .NET 4.5.2 but the C# code allows me to use a 'Type' free form of IEnumerable, whereas the X# code gives me an error unless I use the Typed form.
I include image detail so you can see what I meant. Can you explain to me WHY ? anybody ?
Also, there is the image with the X# interesting way out for me - the use of 'local implied' - works a treat. Can anyone explain PLEASE ?!
I hope you understand my problem from the image detail supplied.
TIA,
and Regards,
Phil.
Wales, UK.
I have a small (but interesting?) problem, while converting work C# app code to X#. So far everything has translated as I thought it should / would. Until now when I come to 'IEnumerable'.
Both C# and X# apps are targeted at the .NET 4.5.2 but the C# code allows me to use a 'Type' free form of IEnumerable, whereas the X# code gives me an error unless I use the Typed form.
I include image detail so you can see what I meant. Can you explain to me WHY ? anybody ?
Also, there is the image with the X# interesting way out for me - the use of 'local implied' - works a treat. Can anyone explain PLEASE ?!
I hope you understand my problem from the image detail supplied.
TIA,
and Regards,
Phil.
Wales, UK.