I'm getting an error message that I can't seem to figure out. I see that there are many other similar questions posted but the solutions don't seem to be working for me.
Error Message:
'PaymentPlanStoreLogic.Class1.myLog' is a 'field' but is used like a 'type'
My Code:
using System;
using PaymentPlanLogic;
namespace PaymentPlanStoreLogic
{
public class Class1
{
Logger myLog = new Logger();
myLog.createLog();
}
}
Object Browser:
public void createLog()
Member of PaymentPlanLogic.Logger
I have tried the following as suggested on the page (object) is a 'field' but is used like a 'type'
PaymentPlanLogic.Logger.createLog();
But I get the error
"'PaymentPlanLogic.Logger.createLog()' is a 'method' but is used like a 'type'"