CallMemberFunction() 공개 메소드

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.
리턴 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");
 }