Answers for "c# pass method as parameter"

C#
2

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

Code answers related to "c# pass method as parameter"

C# Answers by Framework

Browse Popular Code Answers by Language