Variable Name with apostrophe in F#

Did you know ? . We can create a variable with the name containing apostrophe (‘) in F# .

Variable Name with apostrophe in F#

Below is a code snippet demonstrating how to have  apostrophe in a F# variable name.

open System
[<EntryPoint>]
let main argv =
    let Friend's  = "Test string"
    Console.WriteLine(Friend's)
    let ret = Console.ReadLine()
    0

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the error message “FileOpenAccessDenied – You do not have permissions to open this file...
  • .NET
  • December 3, 2024
You might have had a situation where your code once worked fine in ASP.NET application but now throws the below...
  • .NET
  • December 3, 2024
C# uses the flower bracket “{” and “}” to identify the block or scope of the function or program ....
  • .NET
  • December 3, 2024