I have a constructor for a class that looks like this:
public class Class
{
private Func<string, IThirdField, IFourthField, IResultField> resultField;
public Class(
IFirstField firstField,
ISecondField secondField,
Func<string, IThirdField, IFourthField, IResultField> resultField,
ISomeOtherField someOtherField)
}
I am trying to initialize this class like this:
var classObject = new Class (firstField, secondField,
Func<string, IThirdField, IFourthField, IResultField>
resultField, someOtherField );
I am getting the following errors:
Using the generic type 'Func' requires 1 type arguments.
Invalid expression term "string".
"IThirdField" is a type, which is not valid in the given context.
What am I doing wrong?