CallMemberFunction() public method

Calls the function with the given name. The function must exist on this object or an exception will be thrown.
public CallMemberFunction ( string functionName ) : object
functionName string The name of the function to call.
return object
コード例 #1
0
 public static object ToJSON(ObjectInstance thisObject, string key)
 {
     var number = TypeConverter.ToPrimitive(thisObject, PrimitiveTypeHint.Number);
     if (number is double && (double.IsInfinity((double)number) || double.IsNaN((double)number)))
         return Null.Value;
     return thisObject.CallMemberFunction("toISOString");
 }