SMART FACTORY - 다시 C# / 가변 매개 변수 : Params


SMART FACTORY - 다시 C# / 가변 매개 변수 : Params

더보기 using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Program { static int Add(params int[] values) { int result = 0; for (int i = 0; i < values.Length; i++) { result = result + values[i]; } return result; } private static void PrintAll(params object[] values) { f..


원문링크 : SMART FACTORY - 다시 C# / 가변 매개 변수 : Params