memorandam
memorandam
Subscribe

memorandam

HOME
Unity

この広告は、90日以上更新していないブログに表示しています。

2016-04-11

【C#】 Dictionary 使用例

プログラミング

qiita.com

example 1

{
	public class TestClass : MonoBehaviour 
	{
		Dictionary<int, string> dic = new Dictionary<int, string>()
		{
			{ 0, "today's weather is nice!" },
			{ 1, "today's weather is so so!" },
			{ 2, "today's weather is really nice!" },
		};

		void Start()
		{
			foreach(int key in dic.Keys)
			{
				Debug.Log (dic[key]);
			}
		}
	}
}

yamakami21 2016-04-11 00:45 Subscribe

Remove all ads
Write a comment
  • Read more
« 【C#】デリゲート(delegate) 使用例 第二弾 【C#】スコープを浅くする »
検索
人気の記事
カテゴリ
  • Web (5)
  • その他 (6)
  • プログラミング (48)
  • Unity その他 (42)
  • Unity 全般 (164)
  • Unity エラー (31)
月別アーカイブ
  • ▼ ▶
    2016
    • 2016 / 6
    • 2016 / 5
    • 2016 / 4
    • 2016 / 3
    • 2016 / 2
  • ▼ ▶
    2015
    • 2015 / 9
    • 2015 / 8
    • 2015 / 7
    • 2015 / 6
    • 2015 / 5
    • 2015 / 4
最新記事
  • AngularJS Jasmineを使ったテストについて 
  • Angular.jsのServiceとFactoryに関して
  • javascript のsetTimeOutを使うには、Watchが必要、AnglarJSの$timeoutを使う
  • API REST関連用語
  • JSデータバインディング

Start using Hatena Blog!

yamakami21 is using Hatena Blog. Would you like to try it too?

Start using Hatena Blog (Free)
What is Hatena Blog?
memorandam memorandam

Powered by Hatena Blog | ブログを報告する

Quote saved.

Login to quote this blog

Failed to save quote. Please try again later.

You cannot quote because this article is private.

Subscribed unsubscribe Subscribe Subscribe