c# - NCalc creating custom functions in vb.net -
What is the equivalent code to create a custom function in vb2010 instead of C #?
expression and = new expression ("secret (3, 6)"); E.EvaluateFunction + = Representative (name of string, function ARGs args) {If (name == "secret operation") is the argument. Result = (et) ages. Parameter [0] .Evaluate () + (Int) Ages. Parameter [1]. Evaluation (); };
How to do it here
Import Encalculate Public Class form 1 private hand form 1_load (sender as an object, event as ARG) handles. My Expression ("Secret Operation (3, 6)") The Advertiser XP Evaluate Function, All (SRR, AGR) Secret Operation "then args.Result = CInt (args.Parameters (0) .Evaluate () + AG parameter (1) .Evaluate ()) End And End And Sub End Sub End Class From the document:
Comments
Post a Comment