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. 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 …

  3. 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...

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

  5. 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 …

  6. How do I clone a generic list in C#? - Stack Overflow

    Oct 21, 2008 · I have a generic list of objects in C#, and wish to clone the list. The items within the list are cloneable, but there doesn't seem to be an option to do list.Clone(). Is there an easy way around ...

  7. Create Generic method constraining T to an Enum

    Sep 17, 2008 · Please note though that you can't use generic restriction like where T : Enum because Enum is special type. Therefore I have to check if given generic type is really enum.

  8. 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

  9. 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

  10. How to get the type of T from a member of a generic class or method

    This appears to address the question of whether the type is a list-y sort of thing, but the question is more about how to determine what generic type parameter a type that is known to be a List already was …