About 671,000 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. How to determine the class of a generic type? - Stack Overflow

    I'm creating a generic class and in one of the methods I need to know the Class of the generic type currently in use. The reason is that one of the method's I call expects this as an argument. Exa...

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

  4. How to find reason for Generic GDI+ error when saving an image?

    Mar 22, 2013 · Having a code that works for ages when loading and storing images, I discovered that I have one single image that breaks this code: const string i1Path = @"c:\\my\\i1.jpg"; …

  5. Creating a generic method in C# - Stack Overflow

    Jan 27, 2010 · I am trying to combine a bunch of similar methods into a generic method. I have several methods that return the value of a querystring, or null if that querystring does not exist or is not in the

  6. java - Static method in a generic class? - Stack Overflow

    You can't use a class's generic type parameters in static methods or static fields. The class's type parameters are only in scope for instance methods and instance fields. For static fields and static …

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

  8. Why can't generic types have explicit layout? - Stack Overflow

    Nov 5, 2014 · The design of the .NET framework makes certain assumptions about generic types would would make it essentially impossible to allow an explicit-layout structure to have any fields whose …

  9. How do I get the type name of a generic type argument?

    Jan 5, 2017 · 26 This extension method outputs the simple type name for non-generic types, and appends the list of generic arguments for generic types. This works fine for scenarios where you …

  10. c# - Collection of generic types - Stack Overflow

    Nov 4, 2012 · 43 Have your generic class inherit from a non-generic base, or implement a non-generic interface. Then you can have a collection of this type and cast within whatever code you use to …