vassilych / cscs

CSCS: Customized Scripting in C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to return List<Variables> ??

michalss opened this issue · comments

HI,

arr=["a","b"];
sintra["List"]=arr;
sintra["ActionType"]="Extract";

Is there any equivalent in c# to return this exact format from : ParserFunction please ? I cannot make it work ... :( also i cannot return from ParserFunction List... Simply say i need to return back to cscs complex object from c#. Something similar to..

returnData=SomeFunction

print(returnData["type"]);  // this would be string
print(returnData["list"]); // this would be array

@vassilych

Hi, you always return a Variable from anywhere....
Then you can take a look at Variable type and its fields, e.g. what list it has inside...

well i sped 8h to found out how to do it, but i was not able to do it. can you please give me sample ?