Is it possible to use an F# project as an assembly in a C# project?
If yes; as F# is faster than C# for calculation stuffs (isn’t it?), if the calculation part of the code is in F# and the main project is in C#, does it make the application faster?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it’s possible to use an F# project as an assembly in a C# project.
No, F# is not per se faster than C#. Both are compiled into the same type of Intermediate Language and run by the same .net Framework. You might be able to use some specific feature of F# to write a fast algorithm more elegantly than you would in C#, but that depends highly on the algorithm.