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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Navaneeth KrishnanRank #1,172 · 1.5K reputationPosted Aug 30, 2020, 3:47 AM EDT
int count = type.GetProperties().Length;
Jignesh KumarRank #91 · 22.9K reputationPosted Aug 29, 2020, 2:22 AM EDT