Sabeesh V4u

Sabeesh V4u

  • 1.4k
  • 763
  • 213.3k

how to assign c# class object to a list object after convert?

May 28 2021 6:54 AM
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?
}

Answers (2)