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

  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. Is generic constructor in non-generic class supported?

    Jul 29, 2015 · One remark -- constructor in generic class is generic, because the class is generic. However (taking your answer) it cannot specify extra generic arguments. Thank you for very …

  4. How to get the type of T from a member of a generic class or …

    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 …

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

  6. c# - Uses for static generic classes? - Stack Overflow

    Static generic methods allow type-inference to make usage really easy; static fields on generic classes allow virtually overhead-free storage of (meta)data. It wouldn't surprise me at all if …

  7. Discovering Generic Controllers in ASP.NET Core

    Apr 18, 2016 · By default, ASP.NET Core MVC ignores generic controllers (for example, SomeController). This sample uses a controller feature provider that runs after the default …

  8. How to make a Java Generic method static? - Stack Overflow

    The following is a snippet on how to make a java generic class to append a single item to an array. How can I make appendToArray a static method. Adding static to the method signature …

  9. java - Get generic type of class at runtime - Stack Overflow

    Aug 4, 2010 · 0 If you cannot change the generic class and use one of the method already explained on this page, then simple approach would be to get the type class based on the …

  10. What are the differences between "generic" types in C++ and Java?

    Java has generics and C++ provides a very strong programming model with templates. So then, what is the difference between C++ and Java generics?