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. java - Generic stack implementation - Stack Overflow

    Mar 7, 2017 · Generic stack implementation Asked 9 years, 1 month ago Modified 9 years, 1 month ago Viewed 24k times

  3. .net - What are Generic Collections in C#? - Stack Overflow

    Dec 12, 2008 · What makes a "generic list" generic is the fact, that you can use the same class to create a list of apples and a list of potatoes. Of course once you create a list with the new operator you have …

  4. What is a generic type parameter T in TypeScript?

    Dec 22, 2021 · In your example, Type is a generic type parameter (type variable). When I see just T is that the same thing? Assuming the token is in the same position, yes. By adding we are telling …

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

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

  7. java - Generic pair class - Stack Overflow

    May 18, 2011 · Just attempting this question I found in a past exam paper so that I can prepare for an upcoming Java examination. Provide a generic class Pair for representing pairs of things. The class …

  8. Using generic std::function objects with member functions in one class

    For one class I want to store some function pointers to member functions of the same class in one map storing std::function objects. But I fail right at the beginning with this code: #include <

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

  10. c# generic self-referencing declarations - Stack Overflow

    Oct 30, 2015 · Without a generic, this would have to be in each concrete class because the return type changes. Generics are awesome. what is a little less obvious is how to accomplish that same level of …