Golem.Core.Recipe.GetTaskForMethod C# (CSharp) Method

GetTaskForMethod() public method

public GetTaskForMethod ( MethodInfo methodInfo ) : Task
methodInfo System.Reflection.MethodInfo
return Task
        public Task GetTaskForMethod(MethodInfo methodInfo)
        {
            foreach(Task t in Tasks)
            {
                if (t.Method != null && t.Method.Name == methodInfo.Name)
                {
                    return t;
                }
            }
            return null;
        }