, , : ref F #, #. F #, 'a ref . - contents, :
type 'a ref = { mutable contents : 'a }
. , :
let x = 0
let y = ref x
y, x. y int ref, contents , x ( 0). :
y.contents <- 1
x. contents
F # 'a ref. , :
y.contents <- y.contents + 1
:
y := !y + 1
, := contents, ! .
ref . Reference Cells MSDN.
F # , 'a ref, , byref ( ref out # byref IL). , , contents ref . ref parameterSet ref, , , . , :
let parameterSet = ref(new ParameterSet())
let retVal = currentPanel.GetParameterSet(name, parameterSet)
...
let mutable , &, byref:
let mutable parameterSet = new ParameterSet()
let retVal = currentPanel.GetParameterSet(name, ¶meterSet)