简体   繁体   中英

Which is the difference between .cs and .fs file in xamarin.Android application?

I would like to learn how to do a very simple application with Xamarin.Android. I am using VS2019 community.

To create the new project, I choose the template empty application (Android). IN the solution explorer I can see my main.xaml ya file that it is MainActivity.fs.

My doubt is in this case. I have watch a tutorial in which the person is using VS2017 community, He selects Blank App (Android). But in his cases he has a MainActivity.cs file instead of MainActivity.fs file. And in the code he has use a class instead.

So my doubt is which is the difference between .fs and .cs files and which are the advantages and disadvantages of each type.

Thanks.

.cs means it's a C# file.

.fs is an F# file.

You can find more info about these two languages in this SO question.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM