List<string> ννμΈ liAμ 1~10κΉμ§μ κ°μ λ£κ³
List<string> liB = liAλ₯Ό ν νμ
liB.RemoveAt(liB.Count - 1)μ νλ©΄
Aμ κ°λ μ§μμ§λ€.
νμ§λ§
List<string> liB = new List<string>();
μ μΈ νμ
liB.Add(liA[i])ννλ‘ μ λλ₯Ό μν¨ νμ
liB.RemoveAt(liB.Count - 1);
μ νλ©΄ liBμ λ
Έλλ§ μ§μμ§κ³
liAμ λ
Έλλ€μ 무μ¬νλ€.
κΌ λ¦¬μ€νΈλ§μ νΉμ§μ μλκ³ , valueνμ κ³Ό referenceνμ μ μ°¨μ΄μ λν΄μ μ‘°μ¬ν΄ 보μ
κ°κ³Ό μ°Έμ‘°