cscs icon indicating copy to clipboard operation
cscs copied to clipboard

How to return List<Variables> ??

Open michalss opened this issue 1 year ago • 2 comments
trafficstars

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<Variables>... 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

michalss avatar Dec 16 '23 19:12 michalss

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...

vassilych avatar Dec 17 '23 23:12 vassilych

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 ?

michalss avatar Dec 18 '23 07:12 michalss