using UnityEngine;

using System.Collections;



public class chap10_9 : MonoBehaviour {


// Use this for initialization

void Start () {

Hashtable ht = new Hashtable(10);

ht[10] = "c";

ht[11] = "b";

ht[12] = "a";

ht[13] = 300;

/*

foreach(int key in ht.Keys){

print ("key = " + key);

}

foreach(string s in ht.Values){

print ("data = " + s);

}

*/

ArrayList list = new ArrayList(ht.Values);

foreach(object s in list){

print ("list data = " + s);

}

foreach(string s in list){

print ("list data = " + s);

}

}

// Update is called once per frame

void Update () {

}

}



'Computer Language > 유니티' 카테고리의 다른 글

Item  (0) 2014.05.20
문자 짜르기 해쉬 테이블 사용  (0) 2014.05.20
큐를 이용한 총알 놀이 invoke sendmessage transform  (0) 2014.05.20
해석중  (0) 2014.05.20
윤석씨 (바둑)  (0) 2014.05.19

+ Recent posts