About 588,000 results
Open links in new tab
  1. 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 …

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

    Mar 24, 2014 · You can certainly define generic delegates, after all, that's exactly what Func and Action are. They are treated as generic definitions, just like generic interfaces and classes are. …

  3. Can I make a generic optional, defaulting to a certain class?

    Dec 5, 2012 · My question is related to Is there a reasonable approach to "default" type parameters in C# Generics?, but using an inner generic class that approach doesn't work. …

  4. Using List<T> in C# (Generics) - Stack Overflow

    Oct 2, 2013 · That's not how generics work. MyMethod(List<T> list) is an invalid method signature (unless your class is a generic class with a Type Parameter T)

  5. What is the syntax for Typescript arrow functions with generics?

    Aug 31, 2015 · I found the example above confusing. I am using React and JSX so I think it complicated the scenario. I got clarification from TypeScript Deep Dive, which states for arrow …

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

  7. java - How to Map to Generic Type? - Stack Overflow

    Aug 5, 2019 · Mapstruct is a code generator. So it needs to know which types to construct in order to generate a method implementation. Having said that, you could do this smarter by using a …

  8. single word requests - Using 'generify' to mean 'to make generic ...

    Jun 7, 2011 · Can one use the term generify to mean 'to make generic'? E.g. a software programmer being told: 'generify this segment of code'. If not, what may be a single word …

  9. Generic type as parameter in Java Method - Stack Overflow

    Jul 20, 2011 · Generic type as parameter in Java Method Asked 13 years, 10 months ago Modified 2 years, 2 months ago Viewed 157k times

  10. c# compare two generic values - Stack Overflow

    You cannot use operators on generic types (except for foo == null which is special cased) unless you add where T : class to indicate it is a reference type (then foo == bar is legal) Use …