About 52 results
Open links in new tab
  1. What's the difference between "general" and "generic"?

    Apr 30, 2014 · Generic is the opposite of specific. Generic and specific refer to the identification of a fact. Specific means a fact that has been specified. If you ask for (specify) a pain reliever, aspirin would …

  2. How do I call a generic method using a Type variable?

    What's the best way to call a generic method when the type parameter isn't known at compile time, but instead is obtained dynamically at runtime? Consider the following sample code - inside the Ex...

  3. How can I pass in a func with a generic type parameter?

    Mar 24, 2014 · I like to send a generic type converter function to a method but I can't figure out how to do it. Here's invalid syntax that explains what I like to achieve, the problem is I don't know how to spe...

  4. Convert generic List/Enumerable to DataTable? - Stack Overflow

    I have few methods that returns different Generic Lists. Exists in .net any class static method or whatever to convert any list into a datatable? The only thing that i can imagine is use Reflecti...

  5. How to run .NET Core Console app using generic host builder

    Jul 15, 2021 · How to run .NET Core Console app using generic host builder Asked 4 years, 8 months ago Modified 2 years, 3 months ago Viewed 97k times

  6. c# - Is there a constraint that restricts my generic method to numeric ...

    Aug 28, 2008 · So, my approach was to put all my logic into a generic method with no constraints, but to make that generic method private. I then exposed it with public methods, one explicitly handling the …

  7. Cast to generic type in C# - Stack Overflow

    Jun 28, 2016 · The root issue mentioned above of casting a non-generic version of the class to a derived generic version was the same. In order to allow injection into a portable class library which did not …

  8. c# - How to compare values of generic types? - Stack Overflow

    So, two questions: Why do we observe this weird behaviour? What keeps us from comparing the values of generic types which are known to be IComparable? Doesn't it somehow defeat the entire purpose …

  9. How to call a generic async method using reflection

    Sep 24, 2016 · How to call a generic async method using reflection Asked 9 years, 6 months ago Modified 3 years, 6 months ago Viewed 51k times

  10. c# - A generic error occurred in GDI+ - Stack Overflow

    A generic error occurred in GDI+ Asked 14 years, 7 months ago Modified 1 year, 1 month ago Viewed 63k times