티스토리 뷰
// 중복된 배열 값 제거
사용
string[] arrAA = aa.Split(',');
arrAA = GetDistinctValues<string>(arrAA);
public T[] GetDistinctValues<T>(T[] array)
{
List<T> tmp = new List<T>();
List<T> tmpDuplication = new List<T>();
for (int i = 0; i < array.Length; i++)
{
if (tmp.Contains(array[i]))
{
tmpDuplication.Add(array[i]);
continue;
}
tmp.Add(array[i]);
}
return tmp.ToArray();
}
{
List<T> tmp = new List<T>();
List<T> tmpDuplication = new List<T>();
for (int i = 0; i < array.Length; i++)
{
if (tmp.Contains(array[i]))
{
tmpDuplication.Add(array[i]);
continue;
}
tmp.Add(array[i]);
}
return tmp.ToArray();
}
사용
string[] arrAA = aa.Split(',');
arrAA = GetDistinctValues<string>(arrAA);
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 아이팟 보조배터리
- Roibosh Vanilla
- 안녕 바다
- 보이스티
- 삼성 외장하드
- Crows Zero
- 러브트리프로젝트
- KL-2200
- 나를 기억하고 있는 너에게
- 릴리스 다이어리 - 설레어
- 윈터드림
- 아이폰 셀카
- 닷넷 파일형식
- 로네펠트
- 아이폰 카메라어플
- Lily's Diary
- 모토스톰2
- 릴리스다이어리
- God of War III
- IT·컴퓨터
- georgia max
- KL2200
- hot 6
- 닷넷 엑셀
- 보이스차
- 아이폰 보조배터리
- 아이튠즈 없이 mp3가져오기
- .NET Excel
- GTO SHONAN 14DAYS
- 켄우드 정수기
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함