Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: javascript blob

0
0
Hi,

I have records with single field stored in list in a class i.e., name of person . Now i need to give the input expression to evaluate , and this input expression need to check for the records in list.

example :

Name is : siva
Name is : kumar

these are present in list, now we will give input expression name='siva' .

WriteLine("Enter input");
var input = ReadLine();

var result = engine.Evaluate(input = list.ToString());

WriteLine(result);

Thank you .

Viewing all articles
Browse latest Browse all 2297