I am trying Action<T,T>
delegate and got the following error:
An object reference is required for the non-static field, method, or property
The event declaration looks as follows:
public event Action<string, string> FileStateProcess;
And the usage should looks like this:
if (FileStateProcess != null)
{
FileStateProcess(file.FullName, temppath);
}
What am I doing wrong?