About 54 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. Syntax and Sample Usage of _Generic in C11 - Stack Overflow

    Mar 26, 2015 · Note about the placing of the function parameter list When using a Generic() to select a function based on the controlling-expression you have the choice of including the function argument …

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

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

  5. c# - Generic interface inheritance - Stack Overflow

    Jul 4, 2025 · Generic interfaces can inherit from non-generic interfaces if the generic interface is covariant, which means it only uses its type parameter as a return value. In the .NET class library, …

  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. How to reference a generic type in the DataType attribute of a ...

    I just implemented a workaround that is certainly less than perfect, and does require a bit of code in your ViewModel (which. because the VM shouldn't know about the view, breaks strict MVVM). Define your …

  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# Generics and Type Checking - Stack Overflow

    In case you happen to have a generic method that returns a generic value but doesn't have generic parameters, you can use default(T) + (T)(object) cast, together with C# 8 pattern matching/type …