C# to Swift

Brian,

three things on this

  1. Silver (and Elements in general) makes a string distinction between language (“Swift”, “C#”, etc) and platform (.NET, Java, Cocoa, etc). This blog post goes into this in more detail. All the .NET libraries are available to Silver directly, when targeting thew .NET platform — they dont need to be "(re-)implemented for Swift, per se, you can just reference them (eg System.Core.dll, which is actually referenced by default) and use them.

  2. for LINQ specifically, we actually do implement a large subset of that for the other platforms, so you can use LINQ on Java, Cocoa and .NET (from any language).

  3. Finally, what Swift as a language currently does not have is a language syntax for LINQ, so you will need to use the LINQ operator methods directly (ie “myList.Where($0 > 5);” where in C#'d you;'d do “from I in myList where I > 5;

Does that make sense?

(Unrelated, for converting code make sure to check out Oxidixer and the “Paste C# as Swift” menu, for a timesaver over full manual code conversion. Note also that you can mis Swift and C# code in the same project (regardless of platform) with Elements, as well)