for Smartphone

やまめも

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

【C#】 Dictionary 使用例
Bookmark this entry on Hatena::Bookmark
Tweet
Write a comment
  • Read more
« 【C#】デリゲート(delegate) 使用例 第二弾 【C#】スコープを浅くする »
やまかみのプロフィール

やまかみ ( ID : yamakami21 )

大学院生
2014: 工学研究科M1→ 2015: インドネシア交換留学→ 2016: 現地ゲーム会社にてエンジニア→ 2017: 工学研究科M2

I was born in Japan in 1991. I graduated from mechanical engineering department. Now I am studying at a graduate school at Osaka. And since 2014, I have been living in Indonesia. I worked as a intern game programmer at one of Indonesian game software company.

@shozo_yamakamiをフォロー
検索
人気の記事
カテゴリ
  • Web (5)
  • その他 (6)
  • プログラミング (48)
  • Unity その他 (42)
  • インドネシア語 (3)
  • Unity 全般 (164)
  • Unity エラー (31)
月別アーカイブ
最新記事
  • 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?
やまめも やまめも

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

Star added

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