I have this c# object list and i have to asign a class object to list or how to convert
var studentClassObj= new Student
{
name = "appus",
revision = "1",
};
var teacherClassobj= new Teacher
{
name = "ram",
revision = "13",
students = student
};
var officestaf= new OfficeStaff
{
officestaffList= //officestaffList is a list object how to assign "teacherClassobj" object here?
}

Sujeet RamanRank #1,329 · 1.3K reputationPosted May 28, 2021, 5:01 AM EDT
Ravinder SharmaRank #1,211 · 1.5K reputationPosted May 28, 2021, 3:51 AM EDT