Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replacement for CharInSet function in Delphi Prism

Is there a similar function as CharInSet in Delphi Prism? If not, how would you do it?

I looked online and on StackOverflow, but they speak in terms of Delphi not Delphi Prism for .NET.

I also found out that the include method for setting an element to a set is not available either.

what are the replacements, if any, for these method?

like image 768
ThN Avatar asked Mar 10 '26 16:03

ThN


1 Answers

Use the in operator to test membership. Use the + operator in place of Include. A method like Include could not exist in Prism since sets are immutable in Prism.

See here for full details.

like image 186
David Heffernan Avatar answered Mar 12 '26 06:03

David Heffernan