How to determine if an object is a certain type in F# -
this question has answer here:
in c# use keyword 'is'
if (variable string) { }
how done in f#
try
if (variable :? string) ...
or
let x = variable :? string
this question has answer here:
in c# use keyword 'is'
if (variable string) { }
how done in f#
try
if (variable :? string) ...
or
let x = variable :? string
Comments
Post a Comment