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
let main argv =
    // Normal String example 
    let string1 ="Windows Phone Tutorials with"
    // Verbatim string example
    let string2 = "Windows Store App tutorials with"
    // Triple Quoted String
    let string3 = """"Successful" Programming Website"""
    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