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
Post a Comment