메뉴 바로가기

서브메뉴 바로가기

본문 바로가기

logo

C# .NET 자료실

string int array to string

2013.08.29 11:15

WhiteAT 조회 수:10278

int array를 string 으로 변환하는 예제



 

        UInt16 [] cnt = new ushort[10];

cnt[0] = 1234;

cnt[1] = 567;

cnt[2] = 89;

cnt[3] = 18958;


      StringBuilder sb = new StringBuilder();

      Array.ForEach(_cnt, xx => sb.Append((xx+", ")));


      Console.WriteLine(sb.ToString());

 


결과


1234 567 89 18958  ...................................




관련 문서가 검색되었습니다.
  1. [2016/09/24] XML 으로 환경설정 저장하기 ( \n,엔터값 포함, NewLine) by WhiteAT (9667)
  2. [2014/01/08] if 문에서 여러개 비교할때 by WhiteAT (25339) *3
  3. [2013/08/29] byte array to Hexa String by WhiteAT (13026)
  4. [2013/06/25] string array to string (스트링 문자열 합치기) by WhiteAT (23713)
  5. [2013/03/17] C#, 16진수 TEXT => 10 진수 변환 by WhiteAT (23502)
  6. [2013/01/15] 이미지를 아이콘으로 저장 by WhiteAT (13000)
  7. [2013/01/06] byte array to string by WhiteAT (13915)
  8. [2013/01/06] string to byte array by WhiteAT (13750)
  9. [2012/06/02] split 을 Environment.NewLine로 사용할때 by WhiteAT (21541)
  10. [2011/12/09] 자주 사용하는 기능 정리 by WhiteAT ()