Answers for "C# arguments and parameters"

C#
0

C# params

public static void UseParams(params int[] list)
    {
        for (int i = 0; i < list.Length; i++)
        {
            Console.Write(list[i] + " ");
        }
        Console.WriteLine();
    }

    public static void UseParams2(params object[] list)
    {
        for (int i = 0; i < list.Length; i++)
        {
            Console.Write(list[i] + " ");
        }
        Console.WriteLine();
    }
Posted by: Guest on August-27-2021
0

pass command line arguments C#

C:WINDOWSUninstaller.exe  "C:Program FilesApplication name"  "username"  "C:Documents and SettingsAll UsersStart MenuProgramsapplication name"
Posted by: Guest on July-05-2021

Code answers related to "C# arguments and parameters"

C# Answers by Framework

Browse Popular Code Answers by Language