If think of class (fundamentally) it consist of variables and functions and variables are accessible by class functions or class reference. Access specifiers also play role in it. private variables only accessible by own class and etc.
By creating reference you are assigning the memory. Below code is valid for same thing.
var obj = new TutorialClass();
obj.DescSalaryList = obj.salaryList
or you can try using contractor (like below code) or make any method that play with variables. Within class you can access the variable by only methods. For object oriented programming, it something compilers enforce it for it's internal mechanism
public class TutorialClass
{
List<int> salaryList = new List<int>() { 100, 200, 300, 4000 };
List<int> DescSalaryList = new List<int>() { };
public TutorialClass()
{
salaryList = DescSalaryList;
}
}
If you notice we are using contractor (another function/method) to access variable.