- Code: Select all
∇ APLLINQ
[1] ⍝ Ajay Askoolum
[2] ⎕cself←'c1' ⎕cse 'Init' 'System'
[3] ⎕cse 'returnonerror' 1
[4] ⎕cse 'LoadAssembly' 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Core.dll'
[5] ⎕cse 'LoadAssembly' 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Data.Linq.dll'
[6] ⎕cse 'LoadAssembly' 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Data.DataSetExtensions.dll'
[7] ⎕cse 'ExecStmt' 'using System;using System.Collections.Generic;using System.Linq;'
[8] ⎕cse 'ExecStmt' 'IEnumerable<int> aa = Enumerable.Range(1, 10).Select(x => x * x);'
[9] ⍝⎕cse 'ExecStmt' 'object[] qq = Enumerable.Range(1, 10).Select(x => x * x);'
∇
- Code: Select all
APLLINQ
0
Name=System.Core, Version=4.0.0.0, Culture=, PublicKey token=B7-7A-5C-56-19-34-E0-89
Name=System.Data.Linq, Version=4.0.0.0, Culture=, PublicKey token=B7-7A-5C-56-19-34-E0-89
Name=System.Data.DataSetExtensions, Version=4.0.0.0, Culture=, PublicKey token=B7-7A-5C-56-19-34-E0-89
0
0
⎕cse 'GetValue' 'aa'
CSE ERROR: FATAL ERROR. Method: GetValue - Message: Type 'System.Linq.Enumerable+WhereSelectEnumerableIterator`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' in Assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.
The code runs but I am unable to retrieve the value.
(I get a similar error when retrieving the variable defined in the line that is commented out ... after executing it.)