How can I abstract away the methods on Int32 and Int64 types?
Specifically, how can I refactor these similar functions into a core function?
let private tryParseInt64 (text:string) =
let mutable (number:Int64) = 0L
if Int64.TryParse(text, ref number)
then Some number
else None
let private tryParseInt32 (text:string) =
let mutable (number:Int32) = 0
if Int32.TryParse(text, ref number)
then Some number
else None