Answers for "pass arguments c#"

C#
3

c# pass method as parameter

public int Method1(string input)
    {
        return 0;
    }
	
    public bool RunTheMethod(Func<string, int> myMethodName)
    {
        int i = myMethodName("My String");
        return true;
    }

    public bool Test()
    {
        return RunTheMethod(Method1);
    }
Posted by: Guest on May-24-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

C# Answers by Framework

Browse Popular Code Answers by Language