There are 3 different types of Strings available in F#

Types of Strings in F#

1. Normal String

2. Verbatim String @

3. Triple Quoted String

Below is a sample code demonstrating these 3 different types of strings in F#

// AbundantCode F# Tutorials and Code snippets
open System
[<EntryPoint>]
let main argv =
    // Normal String example 
    let string1 ="Windows Phone Tutorials with Abundantcode.com"
    // Verbatim string example
    let string2 = "Windows Store App tutorials with Abundantcode.com"
    // Triple Quoted String
    let string3 = """"Successful" Programming Website"""
    Console.WriteLine(string1)
    Console.WriteLine(string2)
    Console.WriteLine(string3)
    let retval = Console.ReadLine()
    0 // return an integer exit code

Leave a Reply

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

Liked this content?. Please spread the word :)

  • RSS
  • Twitter
    Visit Us
    Follow Me