Tag Archives: How to pass var as parameter

How to pass var as parameter

The sample below is one of the options to pass var to a method as parameter. classProgram {   publicstaticvoid GetData(IQueryable<Course> context)   {       foreach (Course c in context)       {         Console.WriteLine(c.Course_Name);           foreach (Video v in … Continue reading

Posted in .Net | Tagged , | 2 Comments