본문 바로가기 메뉴 바로가기

Unity_programmer

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Unity_programmer

검색하기 폼
  • 분류 전체보기 (35)
    • Unity (20)
      • ARCore (1)
      • Unirx (0)
      • c# (1)
      • Study (14)
      • 수업자료 (1)
      • Photon (1)
    • MadModMax (3)
      • Policy (3)
  • 방명록

Unity/c# (1)
[c#] string format, 문자열 보간 구문

12345678910111213141516171819using System; namespace Str{ class Program { static void Main(string[] args) { var First = "firstStr"; var Second = "secondStr"; var format = $"First = {First}, Second = {Second}"; var format2 = String.Format("First = {0}, Second = {1}",First, Second); Console.WriteLine(format + "\n" + format2); } }} Colored by Color Scriptercs format 과 format2 는 같은 코드이다. c# 6.0 이후 부..

Unity/c# 2018. 1. 27. 22:38
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/08   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바