Hi all,
i have a below list
public class student
{
stdno int {get;set;}
stdname string {get;set;}
rollno int {get;set}
}
Liststd=new List();
my expected result is no of columns from a list
how can i get this
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Navaneeth KrishnanPosted Aug 30, 2020, 7:47 AM
int count = type.GetProperties().Length;
Jignesh KumarPosted Aug 29, 2020, 6:22 AM