Search results for query: *

  1. sipi41

    Please help with List and Generic Method

    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...
  2. sipi41

    High-order Function question...

    makes sense... we do our login inside the DisplayOutput... then if wherever is true or X we call the method, no parameters...
  3. sipi41

    High-order Function question...

    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...
  4. sipi41

    High-order Function question...

    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"...
  5. sipi41

    High-order Function question...

    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! :-)
  6. sipi41

    High-order Function question...

    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...
Back
Top Bottom