1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Parseの使い方(C#初心者エンジニア向け)

Posted at

C#基本の文法を初学者でもわかりやすく、簡潔に解説したいと思います。

Parceは一言で言えば型変換をしてくれる呪文です。

◯.Parse(✖️✖️✖️✖️✖️✖️✖️✖️);

この場合は、✖️✖️✖️✖️✖️✖️✖️✖️を◯型に変換するという意味です。

int.Parse(Console.ReadLine());

例えば、このコードがあった場合は

Console.ReadLine(入力された文字列をそのまま出力する呪文)を

int型に変えて出力しているということになります。

1
3
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?