C# Member XXX cannot be accessed with an instance with an instance reference;qualify it with a type

C # error report:

Member XXX cannot be accessed with an instance with an instance reference;qualify it with a type name instead

Cannot access member XXX with an instance reference; qualify it with a type name instead

 

Solution: the method is static, so use the Class.Func Call instead of instantiation.

 

Read More: