Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serializing into string #51

Open
notFish opened this issue Oct 19, 2021 · 0 comments
Open

Serializing into string #51

notFish opened this issue Oct 19, 2021 · 0 comments

Comments

@notFish
Copy link

notFish commented Oct 19, 2021

Если у метода есть параметр с типом string, но в запросе вместо string передавать допустим int, то он успешно сам конвертится в string и никакой ошибки не выдает.

Метод

public void SomeMethod(string stringParam)
{
   //stringParam has "6277" value
}

Запрос

{
  "id": "1",
  "jsonrpc": "2.0",
  "method": "SomeMethod",
  "params": {
    "stringParam": 6277
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant