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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -