Last post Mar 27, 2015 09:10 AM by gerrylowry
Mar 27, 2015 07:47 AM|damon2012|LINK
Hi what is this and why is it required:
public IQueryable<T> AllIncludingFights<T>(params Expression<Func<T, object>> include) where T : class
Mar 27, 2015 08:10 AM|Mikesdotnetting|LINK
It's a constraint on a generic method which says that the type argument (the value you specify in place of T) must be a class.
Mar 27, 2015 08:21 AM|vahid bakkhi|LINK
please following below code :
Mar 27, 2015 09:10 AM|gerrylowry|LINK
this is not the answer to your question ... rather for questions like your O.P. above, this is to help you take a first crack at answering it yourself.
For example, you can use Google: msdn c# where
(A) https://msdn.microsoft.com/en-us/library/bb384067.aspx : "where (generic type constraint) (C# Reference)"
(B) https://msdn.microsoft.com/en-us/library/d5x73970.aspx the link provided by vahid bakkhi above
(C) https://msdn.microsoft.com/en-us/library/twcad0zb.aspx the link provided by Mikesdotnett... above
as well as many other links to articles worthy of studying.