How to determine if an object is a certain type in F# -


in c# use keyword 'is'

if (variable string) { } 

how done in f#

try

if (variable :? string) ... 

or

let x = variable :? string 

Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

tags - Jquery Mixitup plugin help prevent handlers being destroyed -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -