Thank you for reading! I'm getting a list of objects (from a dbcontext), then I created a method to pass this list to a Local Function, the method accepts the list but when I try to loop, instead of being able to show the content of my object members I get an error saying: "'T' does not contain...
ok... this comment did not help much... we already know we need a T1 type value from somewhere... if this is so wrong, what's your solution? if this is pointless, what could be better then? Thanks for your help on clarifying this...
Can't do this... this is why this is making me crazy... my understanding is that I require a string but the system is asking for a T1 type, not a string, so an error appears saying "Cant convert string to T1"...
What would be the right implementation then? for example, if on my function I do a call to a database or a text file to get the name, now I have a variable with a name inside the method, now I'm ready to call the function, how do I do that then?? thank you for your help! :-)
Hello, I'm newbie to c#, and I was reading on my book that I can pass functions as parameters and receive functions or both... so I'm trying to make an exercise but can't make this work... please help!
My idea is to create a static function like this:
public static void TestMethod<T1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.