1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

C# : パラメータ保存・読み込み

Posted at

はじめに

変数・パラメータをちょっと保存したいのになぁということありますよね

わざわざ、テキストファイルを保存して、読込して・・・考えただけでだるいですね。

そんなときはPropertiesを使いましょう。

以下の記事がわかりやすいです。

使い方

ソリューションエクスプローラーの上から2番目のnamespaceを右クリックして、「プロパティ」を選択

image.png

下の画面が開く
image.png

全般を選択
image.png

青字「アプリケーション設定を作成する/開く」を選択
image.png

あとは、変数を追加するだけ。

その変数名で

記載のとおりに保存・読み込みをするだけ!

1
0
0

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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?