동적으로 정해진 크기가 아닌 가변데이터를 담을때 사용하면 좋당.
사용예제..
1. 선언.
List<ST_CONTAINER> _listTest = new List<ST_CONTAINER>();
2. 추가
_listTest.Add(stSub);
또는
_listTest.Insertof(...)
3. 가져오기
for (int i = 0; i < _listSubAlarm.Count; i++)
{
st_container = _listTest.ElementAt(i);
4. 삭제
_listTest.RemoveAt
'프로그래밍 > .Net' 카테고리의 다른 글
InvokeRequire 사용하기 (0) | 2014.01.17 |
---|---|
Process kill 하기 (0) | 2014.01.17 |
BitConvert big endian <-> little endian 변환하기 (0) | 2014.01.17 |
C# Block Copy (memcpy) & string byte 상호 변환 (0) | 2014.01.17 |
C# 메모리 관리 - 마소 발췌 (0) | 2014.01.17 |