private static void title(IntPtr info) { NSJSFunctionCallbackInfo arguments = NSJSFunctionCallbackInfo.From(info); NSJSConsoleHandler handler = GetConsoleHandler(arguments); if (arguments.Length <= 0) { arguments.SetReturnValue(handler.GetTitle(arguments)); } else { handler.SetTitle(arguments, (arguments[0] as NSJSString)?.Value); } }