1

I have come across something like this:

[<Activity (Label = "setView", MainLauncher = true)>]

several times and i have been wondering what is [<something>] and what does it do? I would gladly read up on it but i can't since i have no clue what it is called or what it does?

Guy Coder
  • 24,501
  • 8
  • 71
  • 136
Nulle
  • 1,301
  • 13
  • 28
  • 13
    https://learn.microsoft.com/en-us/dotnet/articles/fsharp/language-reference/attributes – ildjarn Jan 23 '17 at 21:18
  • 2
    Those are attributes, and depending on what libraries you use you will most often come across [] for the main function, [] if you do GUI programming, and maybe [] if you expose your records to C#/.NET. – s952163 Jan 24 '17 at 00:43
  • 1
    Also [] for combinable enums. – ildjarn Jan 24 '17 at 22:42
  • 2
    @s952163 and idjarn: you added your answer as a comment. Because of this the question looks unanswered and the person who asked the question can't mark it as being the answer to their question. You'll loose out on reputation points too. – Norbert B. Jan 25 '17 at 09:49
  • @norbertB : Feel free. :-] I hesitate because it's an obvious duplicate, but I can't find a good candidate for duplicate-of nomination offhand. – ildjarn Feb 10 '17 at 00:35

0 Answers0