AH
Size: a a a
AH
AB
AH
kk
kk
IC
kk
МП
ProvidedConstructor описывается функцией args: Expr list -> Expr. Но любое обращение к args, иначе чем %%(args.[0]), приводит недопустим. Как мне тогда пройтись по списку Expr'ов, чтобы что-то сделать с каждым из них?МП
МП
МП
The variable is bound in a quotation but is used as part of a spliced expression. This is not permitted since it may escape its scope.VK
МП
<@@
let this = %%(args.[0])
let fields = this.GetType().GetFields()
for i in 0..fields.Length do
fields.[i].SetValue(this, %%args.[i+1])
@@>МП
МП
МП