Is there a way to examine what exists?
Posted: November 20th, 2013, 6:52 pm
I have not come across this in C#(and is probably a silly idea), so I am not very hopeful! I'll ask anyhow.
Is there a way to do something akin to []nl 2 3 in the []cse managed code memory?
I can execute a multi statement string vector containing valid c# code that does not have a namespace. or class or function: what happens to the variables created in that vector?
For example:
where random is a vector:
Is there a way to do something akin to []nl 2 3 in the []cse managed code memory?
I can execute a multi statement string vector containing valid c# code that does not have a namespace. or class or function: what happens to the variables created in that vector?
For example:
- Code: Select all
⎕cse 'GetValue' random
6 8 6 7 9 4 5 0 4 9 7 8 2 2 2
where random is a vector:
- Code: Select all
//Return 15 random integers between 0 and 10 with replication
using System.Collections;
ArrayList a=new ArrayList();
Random rg = new Random();
for(int i=0;i<15;i++)
{
lock(new object());
a.Add(rg.Next(0,10));
}
a.ToArray();