public CommandJavascriptBindingProperty CreateJs(IdBindingProperty id, ExpectedTypeBindingProperty?expectedType = null) => new CommandJavascriptBindingProperty(CreateJsPostbackInvocation( id.Id, needsCommandArgs: expectedType?.Type?.GetDelegateArguments()?.Length.Apply(len => len != 0) ));
public CommandJavascriptBindingProperty CreateJs(IdBindingProperty id) => new CommandJavascriptBindingProperty(CreateJsPostbackInvocation(id.Id));