how to call c# member function from JavaScript with named parameter. what should i do

May 14, 2015 at 8:44 AM
how to call c# member function from JavaScript with named parameter. what should i do
// i want my JavaScript Code will be something like this
// By this script i want to call c# method with named arguments

var retResult = new myCSharpMethod( a:'aa', b:'bb');  
// my C# class is as below
public class myCSharpClass
    {
        public string myCSharpMethod(string a="", string b="")
        {
            string strRet= a + " " + b;
            return strRet;
        }
    }
Coordinator
May 14, 2015 at 5:20 PM
ClearScript currently has no built-in support for specifying host method arguments by name. This is a feature we're tracking here.