I have an F# variable defined as follows
let id = new Nullable<int>()
and I am passing it from F# into a C# function that takes a ref Nullable<int>
and, subsequently, assigns it a value (it's basically stored procedure code auto-generated by Linq2Sql).
Unfortunately, when the function call exits, my id
variable still has no value (i.e., is null). I've tried declaring it as mutable
but F# complains that I cannot use mutable variables in closures.
Can someone help? Thanks!