c# - cannot access property within the same class -


i'm having trouble understanding why part of code can't resolve part.

i have class contains 2 properties. second property relies on first, keeps throwing error:

cannot resolve symbol 'yearlyemployees'

public class financials {      public static ienumerable<salaryentity> yearlyemployees = factorymanagement(12345);       //cannot resolve symbol 'yearlyemployees'     public static ienumerable<companyentity> yearlygroup(ilist<yearlyemployees> allexempt)     {      }  } 

i'm sure there's easy answer, can't find it.

thanks!

yearlyemployees variable name, not class name. try:

public static ienumerable<companyentity> yearlygroup(ilist<salaryentity> allexempt) 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -